/** * @test */ public function directoryIsCreated() { $example = new Example('id'); $this->assertFalse(file_exists(__DIR__ . '/id')); $example->setDirectory(__DIR__); $this->assertTrue(file_exists(__DIR__ . '/id')); }
/** * 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')); }
/** * 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')); }