Skip to content

Commit cf2c4ac

Browse files
committed
ITT: seeArtisanTableOutput assertion added.
1 parent 9a4a9b9 commit cf2c4ac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Provides Laravel-specific testing helpers and asserts.
7171
- [ArtisanAsserts](#artisanasserts)
7272
- [seeArtisanOutput](#seeartisanoutput)
7373
- [dontSeeArtisanOutput](#dontseeartisanoutput)
74+
- [seeArtisanTableOutput](#seeartisantableoutput)
7475
- [CollectionAsserts](#collectionasserts)
7576
- [assertCollectionsEqual](#assertcollectionsequal)
7677
- [assertCollectionsNotEqual](#assertcollectionsnotequal)
@@ -151,6 +152,18 @@ Checks if specified string is not seen as artisan output:
151152
$this->dontSeeArtisanOutput('Hello, Universe!');
152153
```
153154
155+
#### `seeArtisanTableOutput()`
156+
157+
Checks if specified data is seen as artisan table output:
158+
159+
```php
160+
$this->seeArtisanTableOutput([
161+
['Date' => '2016-12-13 13:13:13', 'System' => 'Alpha', 'Status' => 'Enabled'],
162+
['Date' => '2016-12-14 14:14:14', 'System' => 'Beta', 'Status' => 'Enabled'],
163+
['Date' => '2016-12-15 15:15:15', 'System' => 'Gamma', 'Status' => 'Disabled'],
164+
]);
165+
```
166+
154167
### CollectionAsserts
155168
156169
#### `assertCollectionsEqual()`

0 commit comments

Comments
 (0)