public function testSetConstants() { $definition = new Definition('Class1'); $constants = array(new Constant('X', 'Y'), new Constant('Z', 'W')); $definition->setConstants($constants); $this->assertEquals($definition->getConstants(), $constants); }
public function testSetConstants() { $definition = new Definition('Class1'); $constants = array(new Constant('X', 'Y'), new Constant('Z', 'W')); $definition->setConstants($constants); $this->assertEquals($definition->getConstants(), $constants); }