Exemplo n.º 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');
    }
}
Exemplo n.º 2
0
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::DELETE();
 }
Exemplo n.º 3
0
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::GET();
 }
Exemplo n.º 4
0
 public function getMethod() : Enums\HTTPMethod
 {
     return Enums\HTTPMethod::GET();
 }