/**
  * @param StdClass $rightObject
  * @param StdClass $wrongObject
  * @param Knp\FriendlyContexts\Reflection\ObjectReflector $reflector
  **/
 function let(\StdClass $rightObject, \StdClass $wrongObject, ObjectReflector $reflector)
 {
     $reflector->getClassName($rightObject)->willReturn('TheClass');
     $reflector->getClassNamespace($rightObject)->willReturn('The\\Name\\Space');
     $reflector->getClassLongName($rightObject)->willReturn('The\\Name\\Space\\TheClass');
     $reflector->isInstanceOf($rightObject, 'The\\Name\\Space\\TheClass')->willReturn(true);
     $reflector->getClassName($wrongObject)->willReturn('TheOtherClass');
     $reflector->getClassNamespace($wrongObject)->willReturn('The\\Other\\Name\\Space');
     $reflector->getClassLongName($wrongObject)->willReturn('The\\Other\\Name\\Space\\TheOtherClass');
     $reflector->isInstanceOf($wrongObject, 'The\\Name\\Space\\TheClass')->willReturn(false);
     $this->beConstructedWith($reflector);
 }
 /**
  * @param StdClass $rightObject
  * @param StdClass $wrongObject
  * @param Knp\FriendlyContexts\Reflection\ObjectReflector $reflector
  * @param Knp\FriendlyContexts\Record\Collection $collection
  **/
 function let(\StdClass $rightObject, \StdClass $wrongObject, ObjectReflector $reflector, Collection $collection)
 {
     $reflector->getClassName($rightObject)->willReturn('TheClass');
     $reflector->getClassNamespace($rightObject)->willReturn('The\\Name\\Space');
     $reflector->getClassName($wrongObject)->willReturn('TheOtherClass');
     $reflector->getClassNamespace($wrongObject)->willReturn('The\\Other\\Name\\Space');
     $collection->support($rightObject)->willReturn(true);
     $collection->support($wrongObject)->willReturn(false);
     $this->beConstructedWith($reflector, $collection);
 }