이 오류는 무엇입니까? laravel에서 간단한 테스트를 만드는 방법.테스트가 실행되지 않았습니다! laravel 5.4
PHPUnit 6.3.1 by Sebastian Bergmann 및 기고자.
시간 : 130 밀리, 메모리 : 4.00MB
어떤 테스트가 실행되지 않습니다!
시험/기능/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('وبسایت اکسبیر');
}
}
테스트 실행 방법은 무엇입니까? 당신이 처형 한 명령은 무엇입니까? – Shiro
composer global phpunit/phpunit이 필요합니다 –
[PHPUnit - '구성 파일을 사용할 때 테스트가 실행되지 않았습니다'가 중복 될 수 있습니다. (https://stackoverflow.com/questions/29299206/phpunit-no-tests-executed-when-using-configuration -file) –