Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function testSourceRecords() |
||
8 | { |
||
9 | $summaryReport = new SiteSummary; |
||
10 | $records = $summaryReport->sourceRecords(null); |
||
11 | $firstRecord = $records->first(); |
||
12 | $this->assertInstanceOf(Package::class, $firstRecord); |
||
13 | $this->assertEquals('pretend/uptodate', $firstRecord->Name); |
||
14 | } |
||
15 | } |
||
16 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.