示例#1
0
 /**
  * @covers \Core\FileSystem\FileSystemKernel::find
  */
 public function testFileFind()
 {
     /*
      * Glob doesn't work with vfsStream
      */
     $this->assertCount(2, FileSystem::find('*.php', __DIR__));
     $this->assertContains('ExplorerTest.php', FileSystem::find('*.php', __DIR__)[0]);
     $this->assertContains('FileSystemTest.php', FileSystem::find('*.php', __DIR__)[1]);
 }
示例#2
0
 public function store($path, $content)
 {
     return FileSystem::write($path, $content);
 }