public static function table($name)
{
$file = new File();
$file->name = $name;
return $file;
}
/** * @covers Lazer\Classes\Helpers\File::remove * @expectedException Lazer\Classes\LazerException * @expectedExceptionMessage Data: File does not exists */ public function testRemoveFileNotExists() { $object = $this->object->table('ghost'); $object->setType('data'); $this->assertFalse($this->root->hasChild('ghost.data.json')); $object->remove(); }