/** * @param mixed $id * * @throws Exceptions\IdentifierArgumentIsNotScalar * @throws IdentifierArgumentIsNotAClassName */ protected function guardType($id) { parent::guardType($id); $this->guardClassNameIsValid($id); }
/** * @dataProvider idStringEqualsFailesProvider */ public function testEqualsFailsOnDifferentIdString($id_string, $other_id_string) { $identifier = new Identifier($id_string); $other = new Identifier($other_id_string); $this->assertFalse($identifier->equals($other)); $this->assertFalse($other->equals($identifier)); }