Exemplo n.º 1
0
class PostRequestTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @covers ::getMethod
     */
    public function testGetMethod()
    {
        $obj = new class
        {
            use PostRequest;
        };
        $this->assertEquals(\Firehed\API\Enums\HTTPMethod::POST(), $obj->getMethod(), 'getMethod did not return HTTP POST');
    }
}
Exemplo n.º 2
0
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::POST();
 }