<?php

namespace N98\Magento\Command;

use N98\Magento\Command\PHPUnit\TestCase;
use Symfony\Component\Console\Tester\CommandTester;

class ListCommandTest extends TestCase
{
    public function testExecute()
    {
        $command = $this->getApplication()->find('list');

        $commandTester = new CommandTester($command);
        $commandTester->execute(
            array(
                'command' => 'list',
        )
        );

        $this->assertContains(
            sprintf('n98-magerun version %s by netz98 GmbH', $this->getApplication()->getVersion()),
            $commandTester->getDisplay()
        );
    }
}

<?php

namespace N98\Magento\Command;

use N98\Magento\Command\PHPUnit\TestCase;
use Symfony\Component\Console\Tester\CommandTester;

class ListCommandTest extends TestCase
{
    public function testExecute()
    {
        $command = $this->getApplication()->find('list');

        $commandTester = new CommandTester($command);
        $commandTester->execute(
            [
                'command' => 'list',
            ]
        );

        $this->assertContains(
            sprintf('n98-magerun version %s by netz98 GmbH', $this->getApplication()->getVersion()),
            $commandTester->getDisplay()
        );
    }
}

--- 
+++ 
@@ -13,9 +13,9 @@
 
         $commandTester = new CommandTester($command);
         $commandTester->execute(
-            [
+            array(
                 'command' => 'list',
-            ]
+        )
         );
 
         $this->assertContains(
[FIX] Fix array syntax for old PHP versions
