Registry / testing / friendsofcake-cakephp-test-utilities

friendsofcake-cakephp-test-utilities

JSON →
library3.0.0phppackagistunverified

Package with support traits to ease unit testing.

composer require friendsofcake/cakephp-test-utilities
INSTALL
IMPORT
SIG · FRIENDSOFCAKE-CAKE
F
friendsofcake-cakephp-test-utilities
testingphpv3.0.0
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.

ControllerTestCaseTrait
use FriendsOfCake\TestUtilities\ControllerTestCaseTrait;

Use the trait in a CakePHP test case.

use FriendsOfCake\TestUtilities\ControllerTestCaseTrait; class MyTest extends \Cake\TestSuite\IntegrationTestTrait { use ControllerTestCaseTrait; public function testIndex() { $this->get('/'); $this->assertResponseOk(); } }
Debug
Known issues
breakingRequires CakePHP 3.x or higher.
fix
Ensure your CakePHP version is compatible.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
friendsofcake-cakephp-test-utilities — pip install friendsofcake-cakephp-test-utilities · libregistry