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