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'); } }
public function getMethod() : HTTPMethod { return HTTPMethod::PUT(); }