public function testAddArgumentFromArray() { $argument = new Argument(); $collection = new ArgumentCollection(); $collection->add($argument); $this->assertCount(1, $collection); }
public function testSetAndGetArguments() { $method = new Method(); $arguments = new ArgumentCollection(); $arguments->add(new Argument(array('name' => 'arg1'))); $method->setArgumentCollection($arguments); $this->assertInstanceOf('\\ClassGeneration\\ArgumentCollection', $method->getArgumentCollection()); $this->assertCount(1, $method->getArgumentCollection()); }