2

私はちょうどphpdbgで起動しようとしています、私はそれを使用してインストールしました

apt-get install --yes php-phpdbg

私はphpdbgを実行しようとしています:

$ phpdbg -qrr vendor/bin/phpunit

$ phpdbg -qrr vendor/bin/phpunit ExampleTest.php

ExampleTest.php は

<?php

namespace Tests\Feature;

use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{
    public function testBasicTest()
     {
         $response = $this->get('/');
         $response->assertStatus(200);
     }
 }

また

$ phpdbg -qrr vendor/bin/phpunit --configuration phpunit.xml

この行を phpunit.xml に追加します

<logging>
    <log type="coverage-clover" target="tests/_reports/logs/clover.xml"/>
    <log type="coverage-html" target="tests/_reports/coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70" />
    <log type="testdox-text" target="tests/_reports/testdox/executed.txt"/>
</logging>

しかし、出力は常に

【実行するものは何もありません!】

4

0 に答える 0