<?php

/**
 * Base Integration Test
 *
 * The core test-class for all integration tests
 *
 * @author Alin Eugen Deac <aedart@gmail.com>
 */
abstract class BaseIntegrationTest extends BaseUnitTest
{
    protected function _before()
    {
        parent::_before();
    }

    protected function _after()
    {
        parent::_after();
    }

    /********************************************************
     * Helpers
     *******************************************************/

    public function outputPath()
    {
        return parent::outputPath() . 'commands/';
    }

    public function dataPath()
    {
        return parent::dataPath() . 'commands/';
    }
}
<?php
use Aedart\Scaffold\ScaffoldApplication;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Tester\CommandTester;

/**
 * Base Integration Test
 *
 * The core test-class for all integration tests
 *
 * @author Alin Eugen Deac <aedart@gmail.com>
 */
abstract class BaseIntegrationTest extends BaseUnitTest
{
    protected function _before()
    {
        parent::_before();
    }

    protected function _after()
    {
        parent::_after();
    }

    /********************************************************
     * Helpers
     *******************************************************/

    public function outputPath()
    {
        return parent::outputPath() . 'commands/';
    }

    public function dataPath()
    {
        return parent::dataPath() . 'commands/';
    }

    /**
     * Returns a command from the Scaffold Application
     *
     * @param string $name
     *
     * @return Command
     */
    public function getCommandFromApp($name)
    {
        $app  = new ScaffoldApplication();

        return $app->find($name);
    }

    /**
     * Returns a new command tester instance
     *
     * @param Command $command
     *
     * @return CommandTester
     */
    public function makeCommandTester(Command $command)
    {
        return new CommandTester($command);
    }
}
Add command testing util methods
Add command testing util methods

Most of the time the command tester will be used, based on commands
that should be available inside the Scaffold Application
