Exemplo n.º 1
0
 /**
  * @param mixed $id
  *
  * @throws Exceptions\IdentifierArgumentIsNotScalar
  * @throws IdentifierArgumentIsNotAClassName
  */
 protected function guardType($id)
 {
     parent::guardType($id);
     $this->guardClassNameIsValid($id);
 }
Exemplo n.º 2
0
 /**
  * @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));
 }