1 | <?php |
||
7 | class ServerFileSystemTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | public function testGetFilesInDirectory() |
||
15 | |||
16 | public function testGetFilesInDirectoryIsRecursiveAndAlphabetical() |
||
17 | { |
||
18 | $files = ServerFileSystem::getFilesInDirectory(__DIR__ . '/../'); |
||
19 | |||
20 | $this->assertCount(6, $files); |
||
21 | $this->assertStringEndsWith('Unit/Adapter/LocalStorageTest.php', $files[0]); |
||
22 | $this->assertStringEndsWith('Unit/Factory/FileSystemFactoryTest.php', $files[3]); |
||
23 | } |
||
24 | |||
25 | public function testDeleteFilesInDirectoryRecursively() |
||
46 | } |
||
47 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.