示例#1
0
 public function testCreatingTempDirectoryDestroysPreviousOne()
 {
     $firstPath = \PhpunitTempDir\Helper::createTempDir();
     $this->assertEquals('vfs://root/', $firstPath);
     mkdir($firstPath . 'loremipsum');
     $this->assertFileExists($firstPath . 'loremipsum');
     $customPath = \PhpunitTempDir\Helper::createTempDir();
     $this->assertEquals('vfs://root/', $customPath);
     $this->assertFileExists($customPath);
     $this->assertFileNotExists($firstPath . 'loremipsum');
 }
示例#2
0
文件: view.php 项目: flaviovs/uview
 public static function setUpBeforeClass()
 {
     static::$path = \PhpunitTempDir\Helper::createTempDir();
 }