/**
  * Objects that are unknown to the persistence manager cannot be resolved by the standard DynamicRoutePart handler.
  *
  * @test
  */
 public function resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectThatIsUnknownToThePersistenceManager()
 {
     $object = new \stdClass();
     $this->mockPersistenceManager->expects($this->once())->method('getIdentifierByObject')->with($object)->will($this->returnValue(NULL));
     $this->assertFalse($this->dynamicRoutPart->_call('resolveValue', $object));
 }
 /**
  * @test
  */
 public function resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectWithAnIdentifierThatIsNoString()
 {
     $object = new \stdClass();
     $this->mockPersistenceManager->expects($this->once())->method('getIdentifierByObject')->with($object)->will($this->returnValue(array('foo', 'bar')));
     $this->assertFalse($this->dynamicRoutPart->_call('resolveValue', $object));
 }