Issues (31)

tests/Testing/EntityMockTest.php (4 issues)

Labels
Severity
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
The property foo does not seem to exist on Gorynych\Testing\EntityMock.
Loading history...
19
        /** @phpstan-ignore-next-line */
20
        $this->assertIsInt($entityMock->bar);
0 ignored issues
show
The property bar does not seem to exist on Gorynych\Testing\EntityMock.
Loading history...
21
        /** @phpstan-ignore-next-line */
22
        $this->assertIsBool($entityMock->baz);
0 ignored issues
show
The property baz does not seem to exist on Gorynych\Testing\EntityMock.
Loading history...
23
        /** @phpstan-ignore-next-line */
24
        $this->assertIsString($entityMock->date);
0 ignored issues
show
The property date does not seem to exist on Gorynych\Testing\EntityMock.
Loading history...
25
    }
26
}
27