PHP code example of pbmedia / laravel-browser-kit-macro

1. Go to this page and download the library: Download pbmedia/laravel-browser-kit-macro 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/ */

    

pbmedia / laravel-browser-kit-macro example snippets


ProtoneMedia\LaravelBrowserKitMacro\BrowserKitMacroServiceProvider::class,

/** @test */
public function it_presents_a_registration_form()
{
    $this->get('register')
        ->assertStatus(200)
        ->browserKit(function ($test) {
            $test->seeElement('input', ['name' => 'email']);
        });
}