Registry / testing / lchrusciel-api-test-case

lchrusciel-api-test-case

JSON →
library5.3.5phppackagistunverified

Perfect PHPUnit TestCase for JSON/XML API TDD with Symfony.

composer require lchrusciel/api-test-case
INSTALL
IMPORT
SIG · LCHRUSCIEL-API-TES
L
lchrusciel-api-test-case
testingphpv5.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApiTestCase
use Lchrusciel\ApiTestCase\ApiTestCase;

Write a PHPUnit test for a Symfony API endpoint.

use Lchrusciel\ApiTestCase\ApiTestCase; class MyApiTest extends ApiTestCase { public function testGetEndpoint() { $client = static::createClient(); $client->request('GET', '/api/endpoint'); $this->assertResponseIsSuccessful(); } }
Debug
Known issues
gotchaRequires Symfony framework, not standalone.
fix
Ensure Symfony is installed and configured.
affects: *
Upgrade
Version history
5.3.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lchrusciel-api-test-case — pip install lchrusciel-api-test-case · libregistry