예제 #1
0
 /**
  * @dataProvider provideTestNamesForSetName
  * @covers \phpDocumentor\Plugin\Scrybe\Template\Twig::setName
  */
 public function testSetTemplateNameValidity($name, $erroneous)
 {
     if ($erroneous) {
         $this->setExpectedException('\\InvalidArgumentException');
     }
     $fixture = new Twig();
     $fixture->setName($name);
     $this->assertEquals($name, $fixture->getName());
 }