| Total Complexity | 6 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | class NamespaceHelperTest extends TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var NamespaceHelper |
||
| 11 | */ |
||
| 12 | private static $helper; |
||
| 13 | |||
| 14 | public static function setupBeforeClass() |
||
| 15 | { |
||
| 16 | self::$helper = new NamespaceHelper(); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testCropSuffix() |
||
| 20 | { |
||
| 21 | $fqn = 'FooBar'; |
||
| 22 | $suffix = 'Bar'; |
||
| 23 | $expected = 'Foo'; |
||
| 24 | $actual = self::$helper->cropSuffix($fqn, $suffix); |
||
| 25 | $this->assertSame($expected, $actual); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testGetObjectShortName() |
||
| 40 | } |
||
| 41 | |||
| 42 | public function testGetObjectFqn() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |