Registry / testing / phpunit-phpunit-story

phpunit-phpunit-story

JSON →
library1.0.2phppackagistunverified

Story extension for PHPUnit to facilitate Behaviour-Driven Development.

composer require phpunit/phpunit-story
INSTALL
IMPORT
SIG · PHPUNIT-PHPUNIT-ST
P
phpunit-phpunit-story
testingphpv1.0.2
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.

TestCase
use PHPUnit\Extensions\Story\TestCase;

Write BDD-style stories with PHPUnit.

<?php require 'vendor/autoload.php'; use PHPUnit\Extensions\Story\TestCase; class MyStoryTest extends TestCase { public function testUserLogin() { $this->given('User is registered') ->when('User logs in') ->then('User should be authenticated'); } }
Debug
Known issues
breakingThis package is for PHPUnit 4.x and may not work with newer versions.
fix
Use PHPUnit's built-in testdox or consider Behat for BDD.
affects: >=1.0.0
Upgrade
Version history
1.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
phpunit-phpunit-story — pip install phpunit-phpunit-story · libregistry