PHP code example of sokolnikov911 / testing-tools-updated
1. Go to this page and download the library: Download sokolnikov911/testing-tools-updated 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/ */
sokolnikov911 / testing-tools-updated 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 🤟'],
]);
}
}