2

I'm just trying to start up with phpdbg, i have installed it using

apt-get install --yes php-phpdbg

I'm trying to run phpdbg using:

$ phpdbg -qrr vendor/bin/phpunit

and

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

ExampleTest.php being

<?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);
     }
 }

also

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

Adding this lines to 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>

But the output is always

[nothing to execute!]

Iván Quiñones
  • 501
  • 4
  • 12
  • Do you need to specify the config? `--configuration phpunit.xml` Been meaning to play with this more but still using xdebug. What specific PHP version you working with? – ficuscr Jun 04 '19 at 21:17
  • I tried your suggestion, but still the same result. Updating my question to include this – Iván Quiñones Jun 04 '19 at 21:22
  • Can you do a simpler sanity test on some `hello.php` script perhaps? Nothing in the logs? Thinking it seg faults? Seeing some stuff about stability on certain 7.x versions. FWIW: https://stackoverflow.com/questions/40398808/how-to-get-the-php-code-coverage-working-with-phpdbg-on-a-windows-server – ficuscr Jun 04 '19 at 21:27
  • @ficuscr, tried it, still the same result, adding that to the question – Iván Quiñones Jun 05 '19 at 15:52
  • And also tried it on windows with the same project, same result – Iván Quiñones Jun 05 '19 at 16:22

0 Answers0