public function testGetAnnotations() { $expected = 'OK'; $this->annotationManager->shouldReceive('getPropertyAnnotations')->with($this->property, null, 'A')->once()->andReturn($expected); $this->assertEquals($expected, $this->property->getAnnotations('A')); }