Exemplo n.º 1
0
 /**
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::__toString
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::all
  */
 public function test__toString()
 {
     $this->object->set(array('var1' => 1));
     $this->assertEquals('--var1=1', (string) $this->object);
     $this->object->remove('var1')->add('v', 1);
     $this->assertEquals('-v1', (string) $this->object);
     $this->object->set(array('var1' => 2));
     $this->assertEquals('-v1 --var1=2', (string) $this->object);
 }
Exemplo n.º 2
0
 /**
  * Set all arguments at once
  *
  * @param array $arguments
  * @return \Assimp\Command\Verbs\AbstractVerb
  * @deprecated Use ParameterContainer methods
  */
 public function setArguments(array $arguments)
 {
     $this->arguments->set($arguments);
     return $this;
 }