for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPCodeBrowser\Tests;
use PHPCodeBrowser\Application;
use PHPCodeBrowser\Command\RunCommand;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\InputArgument;
/**
* Class ApplicationTest
*/
class ApplicationTest extends TestCase
{
* @var Application
private $application;
*
protected function setUp(): void
$this->application = new Application();
}
public function testCommand(): void
static::assertInstanceOf(RunCommand::class, $this->application->get('phpcb'));
public function testGetDefinitionClearsArguments(): void
$this->application->getDefinition()->setArguments([new InputArgument('foo')]);
static::assertEquals(0, $this->application->getDefinition()->getArgumentCount());