PHP code example of giorgiosironi / eris
1. Go to this page and download the library: Download giorgiosironi/eris library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
giorgiosironi / eris example snippets
use Eris\Generators;
class ReadmeTest extends \PHPUnit\Framework\TestCase
{
use \Eris\TestTrait;
public function testNaturalNumbersMagnitude()
{
$this->forAll(
Generators::choose(0, 1000)
)
->then(function($number) {
$this->assertTrue(
$number < 42,
"$number is not less than 42 apparently"
);
});
}
}