navigator->accept(STDIN, null, $this->visitor); } protected function setUp() { $this->visitor = $this->getMock('JMS\SerializerBundle\Serializer\VisitorInterface'); $this->metadataFactory = new MetadataFactory(new AnnotationDriver(new AnnotationReader())); $this->navigator = new GraphNavigator(GraphNavigator::DIRECTION_SERIALIZATION, $this->metadataFactory); } }