/** * @expectedException \InvalidArgumentException * @expectedExceptionCode 3 */ public function testSetInvalidOptions() { $jade = new Jade(); $jade->setOptions(array('prettyprint' => true, 'i-do-not-exists' => 'right')); }
/** * 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'), '-'); }