File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
tests/HelperFunctions/classes/Artisan Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,18 @@ public function it_can_run_command_in_background()
41
41
$ command ->runInBackground ();
42
42
}
43
43
44
+ /** @test */
45
+ public function which_also_works_for_windows ()
46
+ {
47
+ require_once 'mocks.php ' ;
48
+
49
+ $ this ->emulateWindowsOs ();
50
+ $ this ->expectsExecWith ('start /B php artisan test:command ' );
51
+
52
+ $ command = Command::factory ('test:command ' );
53
+ $ command ->runInBackground ();
54
+ }
55
+
44
56
/**
45
57
* @test
46
58
* @runInSeparateProcess
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Illuminated \Helpers \System
4
+ {
5
+ use Illuminated \Helpers \HelperFunctions \Tests \TestCase ;
6
+
7
+ if (!function_exists (__NAMESPACE__ . '\php_uname ' )) {
8
+ function php_uname ()
9
+ {
10
+ return TestCase::$ functions ->php_uname ();
11
+ }
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments