Exemplo n.º 1
0
 public function test_show_messages_if_cache_directory_does_not_exist()
 {
     $arg = 'tests/CalcTest.php';
     $this->fs->cacheDir()->willReturn('.smartrunner');
     $this->fs->cacheDirExists()->willReturn(false);
     $this->fs->saveSuiteFile(Argument::any())->shouldNotBeCalled();
     $this->command->run([$arg]);
     $this->expectOutputString(".smartrunner directory does not exist.\n" . "Run `smartrunner init [phpunit.xml]` first.\n");
 }