executeCommand()); } public function testExecuteShouldOutputErrorMessageIfColumnsDoNotMatch() { $model = new Model(Model::SCOPE_PAGE); $model->removeCustomVariable(); self::assertStringContainsString('There is a problem with your custom variables configuration', $this->executeCommand()); } private function executeCommand() { $infoCmd = new Info(); $application = new Application(); $application->add($infoCmd); $commandTester = new CommandTester($infoCmd); $commandTester->execute(['command' => $infoCmd->getName()]); return $commandTester->getDisplay(); } }