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