Example #1
0
 /**
  * @depends testFileName
  */
 public function testListDirOnly()
 {
     $files = File::listDirOnly($this->sourceDirPath('testList'));
     $this->assertCount(2, $files);
     $keys = array('dir1', 'dir2');
     foreach ($keys as $key) {
         $filePath = $files[$key];
         $this->assertArrayHasKey($key, $files);
         $this->assertEquals($key, File::getFileName($filePath));
         $this->assertFileExists($filePath);
         $this->assertTrue(is_dir($filePath));
     }
 }