1. Go to this page and download the library: Download spatie/pest-expectations 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/ */
spatie / pest-expectations example snippets
it('can only run well on github actions', function () {
// your test
})->whenGitHubActions();
it('can only run well on github actions', function () {
// your test
})->whenGitHubActions();
class TestCase extends \Illuminate\Foundation\Testing\TestCase
{
use CustomAssertions;
protected function setUp(): void
{
parent::setUp();
$this->registerCustomAssertions();
}
$this
->get('/')
->assertHasJsonApiPagination();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.