From 013e8ca4fe3d92539794edb8b1783690ffea2dea Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 9 Jul 2016 12:26:13 +0200 Subject: [PATCH] Created initial files for required classes of the API. --- src/engine/Api/V1/Pagination.php | 18 ++++++++++++++++++ test/php/engine/Api/V1/FilterTest.php | 20 ++++++++++++++++++++ test/php/engine/Api/V1/MinimizeTest.php | 10 +++++----- test/php/engine/Api/V1/PaginationTest.php | 20 ++++++++++++++++++++ test/php/engine/Api/V1/ResponseTest.php | 10 +++++----- test/php/engine/Api/V1/SearchTest.php | 10 +++++----- test/php/engine/Api/V1/SortTest.php | 20 ++++++++++++++++++++ 7 files changed, 93 insertions(+), 15 deletions(-) create mode 100644 src/engine/Api/V1/Pagination.php create mode 100644 test/php/engine/Api/V1/PaginationTest.php diff --git a/src/engine/Api/V1/Pagination.php b/src/engine/Api/V1/Pagination.php new file mode 100644 index 00000000..3f1e0a3a --- /dev/null +++ b/src/engine/Api/V1/Pagination.php @@ -0,0 +1,18 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace \EA\Engine\Api\V1; + +class Pagination { + +} diff --git a/test/php/engine/Api/V1/FilterTest.php b/test/php/engine/Api/V1/FilterTest.php index e69de29b..a5b0b963 100644 --- a/test/php/engine/Api/V1/FilterTest.php +++ b/test/php/engine/Api/V1/FilterTest.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace EA\Engine\Api\V1; + +class FilterTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } +} diff --git a/test/php/engine/Api/V1/MinimizeTest.php b/test/php/engine/Api/V1/MinimizeTest.php index 7878b5b4..356bea3b 100644 --- a/test/php/engine/Api/V1/MinimizeTest.php +++ b/test/php/engine/Api/V1/MinimizeTest.php @@ -11,10 +11,10 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -namespace \EA\Engine\Api\V1; +namespace EA\Engine\Api\V1; -use PHPUnit\Framework\TestCase; - -class AuthorizationTest extends \TestCase { - +class MinimizeTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } } diff --git a/test/php/engine/Api/V1/PaginationTest.php b/test/php/engine/Api/V1/PaginationTest.php new file mode 100644 index 00000000..369d61cd --- /dev/null +++ b/test/php/engine/Api/V1/PaginationTest.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace EA\Engine\Api\V1; + +class PaginationTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } +} diff --git a/test/php/engine/Api/V1/ResponseTest.php b/test/php/engine/Api/V1/ResponseTest.php index 5a85ea3e..9f993226 100644 --- a/test/php/engine/Api/V1/ResponseTest.php +++ b/test/php/engine/Api/V1/ResponseTest.php @@ -11,10 +11,10 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -namespace \EA\Engine\Api\V1; +namespace EA\Engine\Api\V1; -use PHPUnit\Framework\TestCase; - -class ResponseTest extends TestCase { - +class ResponseTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } } diff --git a/test/php/engine/Api/V1/SearchTest.php b/test/php/engine/Api/V1/SearchTest.php index 7878b5b4..5f9ea272 100644 --- a/test/php/engine/Api/V1/SearchTest.php +++ b/test/php/engine/Api/V1/SearchTest.php @@ -11,10 +11,10 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -namespace \EA\Engine\Api\V1; +namespace EA\Engine\Api\V1; -use PHPUnit\Framework\TestCase; - -class AuthorizationTest extends \TestCase { - +class SearchTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } } diff --git a/test/php/engine/Api/V1/SortTest.php b/test/php/engine/Api/V1/SortTest.php index e69de29b..c025bd99 100644 --- a/test/php/engine/Api/V1/SortTest.php +++ b/test/php/engine/Api/V1/SortTest.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace EA\Engine\Api\V1; + +class SortTest extends \PHPUnit_Framework_TestCase { + public function test() { + $this->markTestIncomplete(); + } +}