public function testIsValidWithNonExistantDefinitionFile() { $template = new Template(); $path = $this->getExampleTemplatePath(); $template->setPath($path); $name = 'example-template'; $template->setName($name); $newName = $path . DIRECTORY_SEPARATOR . \ColumnisTest\Bootstrap::getRandString(); rename($template->getDefinitionFile(), $newName); $this->assertFalse($template->isValid()); rename($newName, $template->getDefinitionFile()); }