/** * @covers \Nia\RequestResponse\Cli\CliRequest::getMethod */ public function testGetMethod() { $this->assertSame(CliRequestInterface::METHOD_CLI, $this->request->getMethod()); }
/** * * {@inheritDoc} * * @see \Nia\Routing\Condition\ConditionInterface::checkCondition($request, $context) */ public function checkCondition(RequestInterface $request, MapInterface $context) : bool { return $this->method === $request->getMethod(); }