Example #1
0
 /**
  * @covers Virtphp\Console\Application::doRun
  */
 public function testDoRunWithLesserPhpVersion()
 {
     Application::$testPhpVersion = true;
     $result = $this->app->doRun($this->input, $this->output);
     $this->assertCount(1, $this->output->messages);
     $this->assertStringMatchesFormat('<warning>' . 'virtPHP only officially supports PHP 5.3.3 and above, ' . 'you will most likely encounter problems with your PHP %s, upgrading is strongly recommended.' . '</warning>', $this->output->messages[0]);
 }