Narrowspark Testing Helper
Installation
Via Composer
$ composer require narrowspark/testing-helper
Usage
use Narrowspark\TestingHelper\Traits\TestHelperTrait;
class ModelTest extends \PHPUnit_Framework_TestCase
{
use TestHelperTrait;
// Now you can do something like this.
public function testIfArrayContainIrix()
{
$haystack = ['Mac', 'NT', 'Irix', 'Linux'];
self::assertInArray('Irix', $haystack);
}
}
Testing
You need to run:
$ phpunit
Contributing
If you would like to help take a look at the list of issues and check our Contributing guild.
Note: Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Credits
License
The MIT License (MIT). Please see License File for more information.