What is this error? How to create simple test in laravel.
PHPUnit 6.3.1 by Sebastian Bergmann and contributors.
Time: 130 ms, Memory: 4.00MB
No tests executed!
tests/Feature/ReadArticle.php
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ReadArticle extends TestCase
{
/**
* @test
*/
public function a_user_can_view_home_page()
{
$this->get('/')->assertSee('وبسایت اکسبیر');
}
}
./vendor/bin/phpunit
in your project folder. The version from your global phpunit might not same as your project require version. – Shiro