File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 33namespace Illuminated \Testing \Asserts ;
44
55use Illuminate \Support \Facades \Artisan ;
6+ use Illuminate \Support \Facades \File ;
67
78trait ArtisanAsserts
89{
910 protected function seeArtisanOutput ($ output )
1011 {
12+ if (File::exists ($ output )) {
13+ $ output = File::get ($ output );
14+ }
15+
1116 $ expected = trim ($ output );
1217 $ actual = trim (Artisan::output ());
1318 $ this ->assertEquals ($ expected , $ actual , "Failed asserting that artisan output is ` {$ expected }`. " );
1419 }
1520
1621 protected function dontSeeArtisanOutput ($ output )
1722 {
23+ if (File::exists ($ output )) {
24+ $ output = File::get ($ output );
25+ }
26+
1827 $ expected = trim ($ output );
1928 $ actual = trim (Artisan::output ());
2029 $ this ->assertNotEquals ($ expected , $ actual , "Failed asserting that artisan output is not ` {$ expected }`. " );
You can’t perform that action at this time.
0 commit comments