public function testEngineOptions() { $jade = new Jade(array('terse' => false, 'indentChar' => '@')); $compiler = new Compiler($jade); $jade->setCustomOption('foo', 'bar'); $this->assertFalse($compiler->getOption('terse')); $this->assertSame('@', $compiler->getOption('indentChar')); $this->assertSame('bar', $compiler->getOption('foo')); }
/** * @expectedException \InvalidArgumentException * @expectedExceptionCode 2 */ public function testInvalidOptionWithEngineInConstructor() { $jade = new Jade(); $compiler = new Compiler($jade); $compiler->getOption('foo'); }