/** * @dataProvider provideTestNamesForSetExtension * @covers \phpDocumentor\Plugin\Scrybe\Template\Twig::setExtension */ public function testSetExtensionValidity($extension, $erroneous) { if ($erroneous) { $this->setExpectedException('\\InvalidArgumentException'); } $fixture = new Twig(); $fixture->setExtension($extension); $this->assertEquals($extension, $fixture->getExtension()); }