function it_gets_the_version_from_the_accept_header(\LaraPackage\Api\Contracts\Request\AcceptHeader $acceptHeaderParser) { $acceptHeaderParser->version()->shouldBeCalledTimes(1)->willReturn(4); $this->version()->shouldReturn(4); }
/** * @inheritdoc */ public function version() { return $this->acceptHeader->version(); }