PHP code example of wdda / laravel-finder-tests

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

    

wdda / laravel-finder-tests example snippets


//Class
ClassName.php

//Test class
ClassNameTest.php

//In class
public function methodName() 
{
    ...
}
//In test class
public function testMethodName() 
{
    ...
}

return  [
    'directory' => [
        [
            'rootPath' => app_path(),
            'classes' => [ //     '__construct'
                ],
                'classesExclude' => [
                    'App\Modules\Models\Wiki'
                ]
            ],
            'tests' => [ // //Other directory...
        ]
    ]
];

 php
WDDA\LaravelFinderTests\FinderTestsProvider::class,
 php
php artisan vendor:publish --tag=finder-tests
 php
php artisan finder-tests
 php
php artisan finder-tests --limit=1