| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function testWithNamespacedClass() |
||
| 44 | { |
||
| 45 | $fileName = __DIR__ . '/project/Luigi/Pizza.php'; |
||
| 46 | $project = $this->fixture->create('My Project', [ |
||
| 47 | new LocalFile($fileName), |
||
| 48 | ]); |
||
| 49 | |||
| 50 | $this->assertArrayHasKey($fileName, $project->getFiles()); |
||
| 51 | $this->assertArrayHasKey('\\Luigi', $project->getNamespaces()); |
||
| 52 | $this->assertEquals( |
||
| 53 | ['\\Luigi\\Pizza' => new Fqsen('\\Luigi\\Pizza')], |
||
| 54 | $project->getNamespaces()['\\Luigi']->getClasses() |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |