예제 #1
0
 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'));
 }
예제 #2
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionCode 2
  */
 public function testInvalidOptionWithEngineInConstructor()
 {
     $jade = new Jade();
     $compiler = new Compiler($jade);
     $compiler->getOption('foo');
 }