1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Gorynych\Tests\Testing; |
||
6 | |||
7 | use Gorynych\Testing\EntityMock; |
||
8 | use Gorynych\Tests\Testing\Resource\TestObject; |
||
9 | use PHPUnit\Framework\TestCase; |
||
10 | |||
11 | class EntityMockTest extends TestCase |
||
12 | { |
||
13 | public function testCreatesEntityMock(): void |
||
14 | { |
||
15 | $entityMock = EntityMock::create(TestObject::class); |
||
16 | |||
17 | /** @phpstan-ignore-next-line */ |
||
18 | $this->assertIsString($entityMock->foo); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
19 | /** @phpstan-ignore-next-line */ |
||
20 | $this->assertIsInt($entityMock->bar); |
||
0 ignored issues
–
show
|
|||
21 | /** @phpstan-ignore-next-line */ |
||
22 | $this->assertIsBool($entityMock->baz); |
||
0 ignored issues
–
show
|
|||
23 | /** @phpstan-ignore-next-line */ |
||
24 | $this->assertIsString($entityMock->date); |
||
0 ignored issues
–
show
|
|||
25 | } |
||
26 | } |
||
27 |