HasStrategyTest::test_autoinit_generator()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ByTIC\Namefy\Tests\Generator;
4
5
use ByTIC\Namefy\Generator;
6
use ByTIC\Namefy\Strategies\ByTICStrategy;
7
use ByTIC\Namefy\Tests\AbstractTest;
8
9
/**
10
 * Class HasStrategyTest
11
 * @package ByTIC\Namefy\Tests\Generator
12
 */
13
class HasStrategyTest extends AbstractTest
14
{
15
    public function test_autoinit_generator()
16
    {
17
        $generator = new Generator();
18
        $strategy = $generator->getStrategy();
19
        self::assertInstanceOf(ByTICStrategy::class, $strategy);
20
    }
21
}
22