/**
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::get
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::set
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::add
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::has
  * @covers Assimp\Command\Verbs\Container\ParameterContainer::remove
  */
 public function testGetSetAddHasValue()
 {
     $this->object->add('var1', 1);
     $this->assertTrue($this->object->has('var1'));
     $this->assertEquals(1, $this->object->get('var1'));
     $this->object->remove('var1');
     $this->assertFalse($this->object->has('var1'));
     $this->object->set(array('var2' => 2));
     $this->assertTrue($this->object->has('var2'));
     $this->assertEquals(2, $this->object->get('var2'));
     $this->object->remove('var2');
     $this->assertFalse($this->object->has('var2'));
 }
Exemple #2
0
 /**
  * Check if an argument is set
  *
  * @param string $arg
  * @return boolean
  * @deprecated Use ParameterContainer methods
  */
 public function hasArgument($arg)
 {
     return $this->arguments->has($arg);
 }