Download the PHP package hhvm/hacktest without Composer
On this page you can find all versions of the php package hhvm/hacktest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hhvm/hacktest
More information about hhvm/hacktest
Files in hhvm/hacktest
Download hhvm/hacktest
More information about hhvm/hacktest
Files in hhvm/hacktest
Please rate this library. Is it a good library?
Informations about the package hacktest
HackTest
HackTest is a unit test runner and base class. Assertions are provided by separate libraries, such fbexpect.
Installation
Usage
To run tests:
Tests are methods in classes, where:
- the class name matches the file name
- the class name ends with 'Test'
- the method is public
- the method name begins with 'test'
Test methods can be async, and will automatically be awaited.
Additionally, classes can implement several special methods:
public static function beforeFirstTestAsync(): Awaitable<void>
public static function afterLastTestAsync(): Awaitable<void>
public function beforeEachTestAsync(): Awaitable<void>
public function afterEachTestAsync(): Awaitable<void>
Finally, for data-driven tests, the <<DataProvider>>
attribute can be used:
Examples
"I want to test all files in a directory"
"I want to run all tests in a specific file"
For an example in verbose mode, see example.txt
Contributing
See CONTRIBUTING.md.
License
The HackTest framework is MIT-licensed.
All versions of hacktest with dependencies
PHP Build Version
Package Version
Requires
hhvm Version
^4.128
facebook/hh-clilib Version ^2.5.0rc1
hhvm/type-assert Version ^3.0|^4.0
facebook/hh-clilib Version ^2.5.0rc1
hhvm/type-assert Version ^3.0|^4.0
The package hhvm/hacktest contains the following files
Loading the files please wait ....