Ejemplo n.º 1
0
 /**
  * @covers \Assimp\Command\Result\VersionResult::parse
  */
 public function testParse()
 {
     $this->object->setOutput(array('Version 3.0--shared -st  (SVNREV 1270)'));
     $this->assertCount(2, $this->object->getOutput());
     $this->assertEquals('3.0', $this->object->getOutputLine('version'));
     $this->assertEquals('1270', $this->object->getOutputLine('svnrev'));
 }
Ejemplo n.º 2
0
 /**
  * @covers Assimp\Command\Result::setOutput
  * @covers Assimp\Command\Result::getOutput
  * @covers Assimp\Command\Result::getOutputLine
  */
 public function testGetSetOutput()
 {
     $output = array('line1', 'line2');
     $this->assertInstanceOf('\\Assimp\\Command\\Result', $this->object->setOutput($output));
     $this->assertCount(2, $this->object->getOutput());
     $this->assertEquals('line1', $this->object->getOutputLine(0));
     $this->assertEquals('line2', $this->object->getOutputLine(1));
 }