Skip to content

Commit 4d03094

Browse files
committed
ITT: Ability to use file path - tests added.
1 parent 12092ea commit 4d03094

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Asserts/ArtisanAssertsTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ public function it_has_see_artisan_output_assertion()
1010
$this->seeArtisanOutput('Hello, World!');
1111
}
1212

13+
/** @test */
14+
public function which_accepts_file_path_as_output_parameter()
15+
{
16+
$this->artisan('generic');
17+
18+
$this->seeArtisanOutput(__DIR__ . '/ArtisanAssertsTest/correct.output.txt');
19+
}
20+
1321
/** @test */
1422
public function it_has_dont_see_artisan_output_assertion()
1523
{
@@ -18,6 +26,14 @@ public function it_has_dont_see_artisan_output_assertion()
1826
$this->dontSeeArtisanOutput('Hello, Universe!');
1927
}
2028

29+
/** @test */
30+
public function which_also_accepts_file_path_as_output_parameter()
31+
{
32+
$this->artisan('generic');
33+
34+
$this->dontSeeArtisanOutput(__DIR__ . '/ArtisanAssertsTest/incorrect.output.txt');
35+
}
36+
2137
/** @test */
2238
public function it_has_see_artisan_table_output_assertion()
2339
{

0 commit comments

Comments
 (0)