Registry / testing / nette-tester

nette-tester

JSON →
library2.6.1phppackagistunverified

Nette Tester: enjoyable unit testing in PHP with code coverage reporter.

composer require nette/tester
INSTALL
IMPORT
SIG · NETTE-TESTER
N
nette-tester
testingphpv2.6.1
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.

Assert
use Tester\Assert;

Write a simple test using Tester's Assert class.

use Tester\Assert; require __DIR__ . '/../vendor/autoload.php'; Assert::same(4, 2 + 2); Assert::exception(function () { throw new \InvalidArgumentException('error'); }, \InvalidArgumentException::class);
Debug
Known issues
gotchaUses custom test runner; not compatible with PHPUnit out of the box.
fix
Run tests with `vendor/bin/tester` instead of phpunit.
affects: *
Upgrade
Version history
2.6.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
nette-tester — pip install nette-tester · libregistry