PHP code example of winter / wn-dusk-plugin

1. Go to this page and download the library: Download winter/wn-dusk-plugin 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/ */

    

winter / wn-dusk-plugin example snippets


 namespace Acme\Blog\Tests\Browser;

use Winter\Dusk\Classes\BrowserTestCase;

class BlogTest extends BrowserTestCase
{
    public function testPost()
    {
        // the test to run
    }
}
bash
php artisan winter:up
bash
php artisan dusk:chrome-driver
bash
php artisan serve
bash
php artisan dusk
bash
php artisan dusk Acme.Blog
bash
php artisan dusk:fails
bash
php artisan dusk Acme.Blog