Example #1
0
 /**
  * @covers Opt_Cdf_Lexer
  * @covers Opt_Cdf_Parser
  * @covers Opt_Cdf_Loader::load
  * @covers Opt_Cdf_Loader::_addDefinition
  */
 public function testMultilineComments2()
 {
     $locator = $this->getMock('Opt_Cdf_Locator_Interface', array('getElementLocation'));
     $locator->expects($this->once())->method('getElementLocation')->will($this->returnValue(array()));
     $this->_loader->load(self::PATH . 'comments_multiline.cdf');
     $this->assertEquals('Opt_Format_Objective', get_class($this->_manager->getFormat('bar', 'joe', $locator)));
 }
Example #2
0
 function yy_r3()
 {
     $this->_loader->_addDefinition(array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor));
 }