JonathanTorres\Construct\Commands\ConstructCommand::testFrameworkWarning PHP Method

testFrameworkWarning() private method

Show warning if a test framework that is not supported is specified.
private testFrameworkWarning ( Symfony\Component\Console\Output\OutputInterface $output ) : string
$output Symfony\Component\Console\Output\OutputInterface
return string
    private function testFrameworkWarning($output)
    {
        $testFramework = $this->settings->getTestingFramework();
        if (!in_array($testFramework, $this->defaults->testingFrameworks)) {
            $warning = '<error>Warning: "' . $testFramework . '" is not a supported testing framework. ' . 'Using ' . Defaults::TEST_FRAMEWORK . '.</error>';
            $output->writeln($warning);
            $testFramework = Defaults::TEST_FRAMEWORK;
        }
        return $testFramework;
    }