<?php

namespace Qafoo\ChangeTrack;

/**
 * @group regression
 */
class AnalyzerRegressionTest extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        `rm -rf src/var/tmp`;
        `mkdir src/var/tmp`;
    }

    public function tearDown()
    {
        unlink('test/temp_result.xml');
    }

    public function testAnalyzerRegressionDaemonRepository()
    {
        `src/bin/track analyze -o test/temp_result.xml -v https://github.com/QafooLabs/Daemon.git`;

        $this->assertXmlFileEqualsXmlFile(
            __DIR__ . '/../../_fixtures/regression_analysis_daemon.xml',
            'test/temp_result.xml'
        );
    }
}

<?php

namespace Qafoo\ChangeTrack;

/**
 * @group regression
 */
class AnalyzerRegressionTest extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
        `rm -rf src/var/tmp`;
        `mkdir src/var/tmp`;
    }

    public function tearDown()
    {
        unlink('test/temp_result.xml');
    }

    public function testAnalyzerRegressionDaemonRepository()
    {
        `src/bin/track analyze -o test/temp_result.xml  https://github.com/QafooLabs/Daemon.git`;

        $this->assertXmlFileEqualsXmlFile(
            __DIR__ . '/../../_fixtures/regression_analysis_daemon.xml',
            'test/temp_result.xml'
        );
    }
}

--- 
+++ 
@@ -20,7 +20,7 @@
 
     public function testAnalyzerRegressionDaemonRepository()
     {
-        `src/bin/track analyze -o test/temp_result.xml  https://github.com/QafooLabs/Daemon.git`;
+        `src/bin/track analyze -o test/temp_result.xml -v https://github.com/QafooLabs/Daemon.git`;
 
         $this->assertXmlFileEqualsXmlFile(
             __DIR__ . '/../../_fixtures/regression_analysis_daemon.xml',
Fixed: Make regression test return verbose output for debugging.
