php-platform / restful-unit
Installs: 205
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/php-platform/restful-unit
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-10-26 11:18:26 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(); } }