php run unit test -laravel code example
Example 1: laravel run test phpunit
vendor/bin/phpunit
Example 2: php unit testing laravel
<?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_basic_test()
{
$this->assertTrue(true);
}
}