bytic /
utility
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Utility\Tests\Traits; |
||
| 4 | |||
| 5 | use Nip\Utility\Traits\NameWorksTrait; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Class NameWorksTraitTest |
||
| 9 | * @package Nip\Utility\Tests\Traits |
||
| 10 | */ |
||
| 11 | class NameWorksTraitTest extends \Nip\Utility\Tests\AbstractTest |
||
| 12 | { |
||
| 13 | use NameWorksTrait; |
||
| 14 | |||
| 15 | public function testGetClassName() |
||
| 16 | { |
||
| 17 | self::assertSame('Nip\Utility\Tests\Traits\NameWorksTraitTest', $this->getClassName()); |
||
| 18 | |||
| 19 | $name = 'Userrs'; |
||
| 20 | $this->setClassName($name); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 21 | self::assertSame($name, $this->getClassName()); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testIsNamespaced() |
||
| 25 | { |
||
| 26 | self::assertTrue($this->isNamespaced()); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testGetNamespaceParentFolder() |
||
| 30 | { |
||
| 31 | self::assertSame('Traits', $this->getNamespaceParentFolder()); |
||
| 32 | self::assertSame( |
||
| 33 | ['Nip', 'Utility', 'Tests', 'Traits', 'NameWorksTraitTest'], |
||
| 34 | $this->getClassNameParts() |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |