ManufacturerFactoryTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFactoryCreatesCorrectInstance() 0 7 1
1
<?php
2
/**
3
 * File: ManufacturerFactoryTest.php
4
 *
5
 * @author      Maciej Sławik <[email protected]>
6
 * Github:      https://github.com/maciejslawik
7
 */
8
9
namespace MSlwk\Otomoto\Middleware\Test\Unit\App\Manufacturer;
10
11
use MSlwk\Otomoto\Middleware\App\Manufacturer\Manufacturer;
12
use MSlwk\Otomoto\Middleware\App\Manufacturer\ManufacturerFactory;
13
use PHPUnit\Framework\TestCase;
14
15
/**
16
 * Class ManufacturerFactoryTest
17
 * @package MSlwk\Otomoto\Middleware\Test\Unit\App\Manufacturer
18
 */
19
class ManufacturerFactoryTest extends TestCase
20
{
21
    /**
22
     * @test
23
     */
24
    public function testFactoryCreatesCorrectInstance()
25
    {
26
        $manufacturerFactory = new ManufacturerFactory();
27
        $manufacturer = $manufacturerFactory->create();
28
29
        $expectedType = Manufacturer::class;
30
        $this->assertInstanceOf($expectedType, $manufacturer);
31
    }
32
}
33