public function testSetAnnotationManager() { $annotation_manager = m::mock(self::ANNOTATION_MANAGER_CLASS); $this->assertSame($this->realFactory, $this->realFactory->setAnnotationManager($annotation_manager)); $this->assertSame($annotation_manager, $this->realFactory->getAnnotationManager()); }