EntityMockTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreatesEntityMock() 0 12 1
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
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
Bug introduced by
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
Bug introduced by
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
Bug introduced by
The property date does not seem to exist on Gorynych\Testing\EntityMock.
Loading history...
25
    }
26
}
27