public function add(Generic $identity) { $this->_identities[$identity->getName()] = $identity; }
public function testName() { $property = new Generic('TestProperty', 'TestValue'); $this->assertEquals('TestProperty', $property->getName()); }