1. Go to this page and download the library: Download illuminated/testing-tools 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/ */
illuminated / testing-tools example snippets
use Illuminated\Testing\TestingTools;
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
{
use TestingTools;
// ...
}
class ExampleTest extends TestCase
{
/** @test */
public function it_has_lots_of_useful_assertions()
{
$this->assertDatabaseHasMany('posts', [
['title' => 'Awesome!'],
['title' => 'Check multiple rows'],
['title' => 'In one simple assertion 🤟'],
]);
}
}