PHP code example of delights / pest-plugin-helpers-auto-register

1. Go to this page and download the library: Download delights/pest-plugin-helpers-auto-register 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/ */

    

delights / pest-plugin-helpers-auto-register example snippets


// tests/Helpers.php
function assertReallyEqual($a, $b) {
    $this->assertEquals($a, $b);
    $this->assertEquals($a, $b);
}

// tests/SomeTest.php

it('tests')
    ->assertReallyEqual(1, 1);

it('tests but better', function () {
    $this->assertReallyEqual(1, 1);
});