예제 #1
0
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');
    }
}
예제 #2
0
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::DELETE();
 }
예제 #3
0
파일: GetRequest.php 프로젝트: firehed/api
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::GET();
 }
예제 #4
0
 public function getMethod() : Enums\HTTPMethod
 {
     return Enums\HTTPMethod::GET();
 }