示例#1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionCode 3
  */
 public function testSetInvalidOptions()
 {
     $jade = new Jade();
     $jade->setOptions(array('prettyprint' => true, 'i-do-not-exists' => 'right'));
 }
示例#2
0
 /**
  * setOptions test
  */
 public function testSetOptions()
 {
     $jade = new Jade();
     $jade->setOptions(array('prettyprint' => true, 'cache' => 'abc', 'indentChar' => '-'));
     $this->assertTrue($jade->getOption('prettyprint'));
     $this->assertSame($jade->getOption('cache'), 'abc');
     $this->assertSame($jade->getOption('indentChar'), '-');
 }