このエラーは何ですか? laravelで簡単なテストを作成する方法。テストは実行されていません! laravel 5.4
PHPUnit 6.3.1 by Sebastian Bergmann and contributors。
時間:130 ms、メモリ: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) –