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