diff --git a/tests/NewCommandTest.php b/tests/NewCommandTest.php index 3f9f903c..7c37592b 100644 --- a/tests/NewCommandTest.php +++ b/tests/NewCommandTest.php @@ -22,14 +22,18 @@ public function test_it_can_scaffold_a_new_laravel_app() } } + + if (! file_exists($scaffoldDirectory)) { + die($scaffoldDirectory . ' not existing'); + } + + $app = new Application('Laravel Installer'); $app->add(new NewCommand); $tester = new CommandTester($app->find('new')); - $statusCode = $tester->execute(['name' => $scaffoldDirectoryName], ['capture_stderr_separately' => true]); - - var_dump($tester->getErrorOutput()); + $statusCode = $tester->execute(['name' => $scaffoldDirectoryName]); $this->assertSame(0, $statusCode); $this->assertDirectoryExists($scaffoldDirectory.'/vendor');