Skip to content

Commit

Permalink
exceptions ordered alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
poprazvan17 committed Aug 10, 2023
1 parent e58229b commit c3c357e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 4 additions & 13 deletions test/Exception/NotFoundExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,15 @@
namespace DotTest\DataFixtures\Exception;

use Dot\DataFixtures\Exception\NotFoundException;
use PHPUnit\Framework\MockObject\Exception;
use PHPUnit\Framework\MockObject\MockObject;
use Exception;
use PHPUnit\Framework\TestCase;

class NotFoundExceptionTest extends TestCase
{
protected NotFoundException|MockObject $exceptionMock;

/**
* @throws Exception
*/
public function setUp(): void
{
$this->exceptionMock = $this->createMock(NotFoundException::class);
}

public function testCreate()
{
$this->assertInstanceOf(NotFoundException::class, $this->exceptionMock);
$exception = new NotFoundException();
$this->assertInstanceOf(NotFoundException::class, $exception);
$this->assertInstanceOf(Exception::class, $exception);
}
}
2 changes: 1 addition & 1 deletion test/Factory/ListFixturesCommandFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected function setUp(): void

/**
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws NotFoundException
* @throws NotFoundExceptionInterface
*/
public function testWithoutConfig(): void
{
Expand Down

0 comments on commit c3c357e

Please sign in to comment.