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