PHP code example of sofa / laravel-kahlan

1. Go to this page and download the library: Download sofa/laravel-kahlan 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/ */

    

sofa / laravel-kahlan example snippets


    /*  /path/to/your/app/kahlan-config.php  */
    

    Sofa\LaravelKahlan\Env::bootstrap($this);

    

    /*  /path/to/your/app/spec/AppSpec.php  */
    

    describe('My awesome Kahlan driven Laravel app', function () {
        it("provides the same testing API as Laravel's own TestCase", function () {
            $this->laravel->get('/')
                          ->assertSee('Laravel 5')
                          ->assertStatus(200);
        });
    }