Sitemap
Hello Laravel

Hello Laravel is a laravel framework publication https: // code4mk.org

Laravel Application Unit Testing.

--

laravel testing, #code4mk , #testing

Laravel built with testing in mind. Laravel support PHPUnit testing.

# 1. Configure xml file

NB: bash cli

# command with  bash cli
./vendor/bin/phpunit --configuration /path/to/laravel_project/phpunit.xml

# 2. Make a Test

php artisan make:test AppTest --unit
Press enter or click to view image in full size

# 3. Run Test

# all file
./vendor/bin/phpunit
# specific file
./vendor/bin/phpunit tests/Unit/AppTest.php
Press enter or click to view image in full size

# Database test

~ .env database

Press enter or click to view image in full size

--

--

Hello Laravel
Hello Laravel

Published in Hello Laravel

Hello Laravel is a laravel framework publication https: // code4mk.org