/**
  * @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);
 }
Esempio n. 2
0
 /**
  * Remove an argument
  *
  * @param string $arg
  * @return \Assimp\Command\Verbs\AbstractVerb
  * @deprecated Use ParameterContainer methods
  */
 public function removeArgument($arg)
 {
     if ($this->hasArgument($arg)) {
         $this->arguments->remove($arg);
     }
     return $this;
 }