コード例 #1
0
ファイル: TwigTest.php プロジェクト: crazycodr/phpDocumentor2
 /**
  * @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());
 }
コード例 #2
0
ファイル: TwigTest.php プロジェクト: hassankhan/sonic
 /**
  * @covers Zepto\Extension\Twig::getName
  */
 public function testGetName()
 {
     $this->assertEquals('Twig', $this->twig->getName());
 }