From bb64ff3a90c7f282712db564d7032205b868e353 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 30 Oct 2020 16:50:04 +0100 Subject: [PATCH] check dir existing --- tests/NewCommandTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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');