/** * This implements testing of the protected buildDocBlock method * * @param DescriptorAbstract $descriptor * @return void */ protected function implementProtectedBuildDocBlock(DescriptorAbstract $descriptor) { $descriptor->shouldReceive('getLine')->andReturn(666); $descriptor->shouldReceive('getPackage')->andReturn('myPackage'); $descriptor->shouldReceive('getSummary')->andReturn('my summary'); $descriptor->shouldReceive('getDescription')->andReturn('my description'); $descriptor->shouldReceive('getTags')->andReturn(array()); }
/** * Describes when a descriptor has tags. * * @param DescriptorAbstract|m\MockInterface $descriptor * @param array $tags * * @return void */ protected function whenDescriptorHasTags($descriptor, $tags) { $descriptor->shouldReceive('getTags')->andReturn($tags); }