function it_needs_line_after_deprecation_it_also_has_an_api_tag(ApiTag $apiTag, DeprecationTag $deprecationTag, MethodPhpdoc $methodPhpdoc) { $methodPhpdoc->getDeprecationTag()->willReturn($deprecationTag); $methodPhpdoc->getDescription()->willReturn(null); $methodPhpdoc->getApiTag()->willReturn($apiTag); $methodPhpdoc->getParameterTags()->willReturn(null); $methodPhpdoc->getReturnTag()->willReturn(null); $methodPhpdoc->getThrowTags()->willReturn(null); $this->needsLineAfter($methodPhpdoc, 'deprecation_tag')->shouldBe(true); }