public function testFullFunctionalCommandCheckOnly() { $application = new LicenserApplication(); $command = $application->find('licenser'); $commandTester = new CommandTester($command); $commandTester->execute(['source' => realpath($this->tempDir), '--check-only' => true]); self::assertContains('[WARN] 4 file(s) should be updated.', $commandTester->getDisplay()); self::assertContains('4 file(s) has been processed', $commandTester->getDisplay()); self::assertEquals(1, $commandTester->getStatusCode()); }
public function testDefinitions() { $app = new LicenserApplication(); self::assertEmpty($app->getDefinition()->getArguments()); }