Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Add final and abstract class modifiers to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipxe13 committed Feb 23, 2022
1 parent 332a34c commit 4b9629a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/Compliance/ComplianceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use PhpCfdi\SatEstadoCfdi\HttpPsr\HttpConsumerClient;
use PhpCfdi\SatEstadoCfdi\Tests\HttpPsr\TestCase;

class ComplianceTest extends TestCase
final class ComplianceTest extends TestCase
{
public function testCompliance(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use PhpCfdi\SatEstadoCfdi\HttpPsr\HttpConsumerFactoryInterface;

class TestCase extends \PHPUnit\Framework\TestCase
abstract class TestCase extends \PHPUnit\Framework\TestCase
{
public function createHttpConsumerFactory(): HttpConsumerFactoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestingHttpConsumerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Sunrise\Http\Factory\StreamFactory as SunriseStreamFactory;
use Symfony\Component\HttpClient\Psr18Client as SymfonyHttpClient;

class TestingHttpConsumerFactory extends HttpConsumerFactory implements HttpConsumerFactoryInterface
final class TestingHttpConsumerFactory extends HttpConsumerFactory implements HttpConsumerFactoryInterface
{
public function __construct(
ClientInterface $httpClient = null,
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HttpConsumerClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Psr\Http\Message\ResponseInterface;
use Sunrise\Http\Factory\ResponseFactory;

class HttpConsumerClientTest extends TestCase
final class HttpConsumerClientTest extends TestCase
{
public function testConstructor(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HttpConsumerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;

class HttpConsumerFactoryTest extends TestCase
final class HttpConsumerFactoryTest extends TestCase
{
private function createFactoryWithMockObjects(): HttpConsumerFactoryInterface
{
Expand Down

0 comments on commit 4b9629a

Please sign in to comment.