File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ protected function proxyPharServer(): string
29
29
{
30
30
$ path = HYDE_TEMP_DIR .'/bin/server.php ' ;
31
31
32
- if (File::exists ($ path )) {
33
- return $ path ;
34
- }
35
-
36
32
$ this ->createServer ($ path );
37
33
38
34
return $ path ;
Original file line number Diff line number Diff line change 11
11
12
12
test ('getExecutablePath method proxies server executable ' , function () {
13
13
HydeKernel::setInstance (new HydeKernel (HYDE_WORKING_DIR ));
14
- File::shouldReceive ('exists ' )->twice ()->andReturnFalse ();
14
+ File::shouldReceive ('exists ' )->once ()->andReturnFalse ();
15
15
File::shouldReceive ('ensureDirectoryExists ' )->once ()->with ('/path/to/temp/dir/bin ' );
16
16
File::shouldReceive ('put ' )->once ()->withArgs (function ($ path , $ contents ) {
17
17
expect ($ path )->toBe ('/path/to/temp/dir/bin/server.php ' )
You can’t perform that action at this time.
0 commit comments