public function testConstructor() { // Test without passing in annotation reader $emMock = Mockery::mock('Doctrine\\ORM\\EntityManagerInterface'); $sut = new ProxyManager($emMock); $this->assertTrue($sut->getAnnotationReader() instanceof AnnotationReader); // Test by passing in annotation reader $em = Mockery::mock('Doctrine\\ORM\\EntityManagerInterface'); $arMock = Mockery::mock('Mindgruve\\Gordo\\Annotations\\AnnotationReader'); $sut = new ProxyManager($em, $arMock); $this->assertEquals($arMock, $sut->getAnnotationReader()); }