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