class GetRequestTest extends \PHPUnit_Framework_TestCase { /** * @covers ::getMethod */ public function testGetMethod() { $obj = new class { use GetRequest; }; $this->assertEquals(\Firehed\API\Enums\HTTPMethod::GET(), $obj->getMethod(), 'getMethod did not return HTTP GET'); } }
public function getMethod() : HTTPMethod { return HTTPMethod::DELETE(); }
public function getMethod() : HTTPMethod { return HTTPMethod::GET(); }
public function getMethod() : Enums\HTTPMethod { return Enums\HTTPMethod::GET(); }