php-platform / restful-unit
v0.1.4
2018-04-15 08:27 UTC
Requires
- php: >=5.5
- php-platform/errors: ~0.1
- php-platform/mock-config: ~0.1
- php-platform/web-session: ~0.1
Suggests
- php-platform/restful: This restful-unit package works well with v0.1-dev release of php-platform/restful
This package is not auto-updated.
Last update: 2025-01-05 06:57:38 UTC
README
This package provides a utilities to unit test Restful Web Services from PHPPlatfrom/restful
How to Use
- Step 1
refer to resources/autoload.php
from this package in the phpunit.xml
<phpunit colors="true" bootstrap="vendor/php-platform/restful-unit/resources/autoload.php" > </phpunit>
- Step 2
invoke setupMethodds of PhpPlatform\Tests\RestfulUnit\ServiceTestCase
from the TestCase's setup methods
class MyRestFulTest extends TestCase { static function setUpBeforeClass(){ parent::setUpBeforeClass(); \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::setUpBeforeClass(); } function setUp(){ parent::setUp(); \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::setUp(); } static function tearDownAfterClass(){ parent::tearDownAfterClass(); \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::tearDownAfterClass(); } function tearDown(){ parent::tearDown(); \PhpPlatform\Tests\RestfulUnit\ServiceTestCase::tearDown(); } }