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