for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bowerphp\Test\Command;
use Bowerphp\Console\Application;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Tester\CommandTester;
/**
* @group functional
*/
class LookupCommandTest extends TestCase
{
public function testExecute()
$application = new Application();
$commandTester = new CommandTester($command = $application->get('lookup'));
$commandTester->execute(['command' => $command->getName(), 'package' => 'jquery'], ['decorated' => false]);
$this->assertRegExp('/jquery-dist.git/', $commandTester->getDisplay());
}
* @expectedException \RuntimeException
* @expectedExceptionMessage Not enough arguments
public function testExecuteWithoutPackage()
$commandTester->execute([], ['decorated' => false]);