Пример #1
0
 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());
 }
Пример #2
0
 public function testDefinitions()
 {
     $app = new LicenserApplication();
     self::assertEmpty($app->getDefinition()->getArguments());
 }