Registry / testing / hackpack-hackunit

hackpack-hackunit

JSON →
library1.1.0phppackagistunverified

An xUnit testing framework for Hack.

composer require hackpack/hackunit
INSTALL
IMPORT
SIG · HACKPACK-HACKUNIT
H
hackpack-hackunit
testingphpv1.1.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.

Test
use HackPack\HackUnit\Contract\Test;

Write a basic test using HackUnit attributes.

use HackPack\HackUnit\Contract\Test; <<Test>> class MyTest { <<Test>> public function testSomething(): void { expect(1 + 1)->toEqual(2); } }
Debug
Known issues
breakingRequires Hack (HHVM) runtime, not standard PHP.
fix
Use HHVM to run tests.
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hackpack-hackunit — pip install hackpack-hackunit · libregistry