コード例 #1
0
 /**
  * @test
  */
 public function directoryIsCreated()
 {
     $example = new Example('id');
     $this->assertFalse(file_exists(__DIR__ . '/id'));
     $example->setDirectory(__DIR__);
     $this->assertTrue(file_exists(__DIR__ . '/id'));
 }
コード例 #2
0
 /**
  * test that the directory is created
  */
 public function testDirectoryIsCreated()
 {
     $example = new Example('id');
     $this->assertFalse(vfsStreamWrapper::getRoot()->hasChild('id'));
     $example->setDirectory(vfsStream::url('exampleDir'));
     $this->assertTrue(vfsStreamWrapper::getRoot()->hasChild('id'));
 }
コード例 #3
0
ファイル: ExampleTestCaseOldWay.php プロジェクト: pago/pantr
 /**
  * test that the directory is created
  */
 public function testDirectoryIsCreated()
 {
     $example = new Example('id');
     $this->assertFalse(file_exists(dirname(__FILE__) . '/id'));
     $example->setDirectory(dirname(__FILE__));
     $this->assertTrue(file_exists(dirname(__FILE__) . '/id'));
 }