public function testRemoveConstantByname() { $definition = new Definition('Class1'); $constant = new Constant('X', 'Y'); $definition->addConstant($constant); $definition->removeConstantByName('X'); $this->assertTrue(sizeof($definition->getConstants()) === 0); }