コード例 #1
0
ファイル: GetRequestTest.php プロジェクト: firehed/api
class GetRequestTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @covers ::getMethod
     */
    public function testGetMethod()
    {
        $obj = new class
        {
            use GetRequest;
        };
        $this->assertEquals(\Firehed\API\Enums\HTTPMethod::GET(), $obj->getMethod(), 'getMethod did not return HTTP GET');
    }
}
コード例 #2
0
ファイル: GetRequest.php プロジェクト: firehed/api
 public function getMethod() : HTTPMethod
 {
     return HTTPMethod::GET();
 }
コード例 #3
0
ファイル: EndpointFixture.php プロジェクト: firehed/api
 public function getMethod() : Enums\HTTPMethod
 {
     return Enums\HTTPMethod::GET();
 }