Skip to content

Commit 14837c8

Browse files
committed
Fix Readme
1 parent 55b7212 commit 14837c8

File tree

8 files changed

+99
-87
lines changed

8 files changed

+99
-87
lines changed

README.md

Lines changed: 68 additions & 56 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "illuminated/testing-tools",
3-
"description": "Laravel-specific testing helpers and asserts.",
3+
"description": "Laravel-specific testing helpers and assertions.",
44
"keywords": ["laravel", "testing", "tools", "helpers", "assertions"],
55
"license": "MIT",
66
"support": {

src/Asserts/ArtisanAsserts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function dontSeeInArtisanOutput(string $needle)
141141
}
142142

143143
/**
144-
* Assert that the given data is seen in the artisan output table.
144+
* Assert that the given data is seen in the artisan table output.
145145
*
146146
* @param array $data
147147
* @return void
@@ -153,7 +153,7 @@ protected function seeArtisanTableOutput(array $data)
153153
}
154154

155155
/**
156-
* Assert that the given data is not seen in the artisan output table.
156+
* Assert that the given data is not seen in the artisan table output.
157157
*
158158
* @param array $data
159159
* @return void
@@ -165,7 +165,7 @@ protected function dontSeeArtisanTableOutput(array $data)
165165
}
166166

167167
/**
168-
* Assert that the artisan output table has the given number of data rows.
168+
* Assert that the artisan table output has the given number of data rows.
169169
*
170170
* @param int $count
171171
* @return void
@@ -177,7 +177,7 @@ protected function seeArtisanTableRowsCount(int $count)
177177
}
178178

179179
/**
180-
* Assert that the artisan output table doesn't have the given number of data rows.
180+
* Assert that the artisan table output doesn't have the given number of data rows.
181181
*
182182
* @param int $count
183183
* @return void

src/Asserts/DatabaseAsserts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
trait DatabaseAsserts
88
{
99
/**
10-
* Assert that database has the given table.
10+
* Assert that the database has the given table.
1111
*
1212
* @param string $table
1313
* @return void
@@ -21,7 +21,7 @@ protected function assertDatabaseHasTable(string $table)
2121
}
2222

2323
/**
24-
* Assert that database doesn't have the given table.
24+
* Assert that the database doesn't have the given table.
2525
*
2626
* @param string $table
2727
* @return void
@@ -35,7 +35,7 @@ protected function assertDatabaseMissingTable(string $table)
3535
}
3636

3737
/**
38-
* Assert that database has all of the given rows.
38+
* Assert that the database has all the given rows.
3939
*
4040
* @param string $table
4141
* @param array $rows
@@ -51,7 +51,7 @@ protected function assertDatabaseHasMany(string $table, array $rows)
5151
}
5252

5353
/**
54-
* Assert that database doesn't have all of the given rows.
54+
* Assert that the database doesn't have all the given rows.
5555
*
5656
* @param string $table
5757
* @param array $rows

src/Asserts/EloquentAsserts.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
trait EloquentAsserts
1010
{
1111
/**
12-
* Assert that model's table name equals to the given value.
12+
* Assert that the model's table name equals to the given value.
1313
*
1414
* @param string $class
1515
* @param string $table
@@ -25,7 +25,7 @@ protected function assertEloquentTableEquals(string $class, string $table)
2525
}
2626

2727
/**
28-
* Assert that model's table name doesn't equal to the given value.
28+
* Assert that the model's table name doesn't equal to the given value.
2929
*
3030
* @param string $class
3131
* @param string $table
@@ -41,7 +41,7 @@ protected function assertEloquentTableNotEquals(string $class, string $table)
4141
}
4242

4343
/**
44-
* Assert that model's primary key is incrementing.
44+
* Assert that the model's primary key is incrementing.
4545
*
4646
* @param string $class
4747
* @return void
@@ -56,7 +56,7 @@ protected function assertEloquentIsIncrementing(string $class)
5656
}
5757

5858
/**
59-
* Assert that model's primary key is not incrementing.
59+
* Assert that the model's primary key is not incrementing.
6060
*
6161
* @param string $class
6262
* @return void
@@ -71,7 +71,7 @@ protected function assertEloquentIsNotIncrementing(string $class)
7171
}
7272

7373
/**
74-
* Assert that model's `fillable` field equals to the given value.
74+
* Assert that the model's `fillable` field equals to the given value.
7575
*
7676
* @param string $class
7777
* @param array $fillable
@@ -87,7 +87,7 @@ protected function assertEloquentFillableEquals(string $class, array $fillable)
8787
}
8888

8989
/**
90-
* Assert that model's `fillable` field doesn't equal to the given value.
90+
* Assert that the model's `fillable` field doesn't equal to the given value.
9191
*
9292
* @param string $class
9393
* @param array $fillable
@@ -103,7 +103,7 @@ protected function assertEloquentFillableNotEquals(string $class, array $fillabl
103103
}
104104

105105
/**
106-
* Assert that model's `dates` field equals to the given value.
106+
* Assert that the model's `dates` field equals to the given value.
107107
*
108108
* @param string $class
109109
* @param array $dates
@@ -119,7 +119,7 @@ protected function assertEloquentDatesEquals(string $class, array $dates)
119119
}
120120

121121
/**
122-
* Assert that model's `dates` field doesn't equal to the given value.
122+
* Assert that the model's `dates` field doesn't equal to the given value.
123123
*
124124
* @param string $class
125125
* @param array $dates
@@ -135,7 +135,7 @@ protected function assertEloquentDatesNotEquals(string $class, array $dates)
135135
}
136136

137137
/**
138-
* Assert that model's `touches` field equals to the given value.
138+
* Assert that the model's `touches` field equals to the given value.
139139
*
140140
* @param string $class
141141
* @param array $touches
@@ -151,7 +151,7 @@ protected function assertEloquentTouchesEquals(string $class, array $touches)
151151
}
152152

153153
/**
154-
* Assert that model's `touches` field doesn't equal to the given value.
154+
* Assert that the model's `touches` field doesn't equal to the given value.
155155
*
156156
* @param string $class
157157
* @param array $touches
@@ -167,7 +167,7 @@ protected function assertEloquentTouchesNotEquals(string $class, array $touches)
167167
}
168168

169169
/**
170-
* Assert that model has the given `HasMany` relation.
170+
* Assert that the model has the given `HasMany` relation.
171171
*
172172
* @param string $class
173173
* @param string $relation
@@ -193,7 +193,7 @@ protected function assertEloquentHasMany(string $class, string $relation)
193193
}
194194

195195
/**
196-
* Assert that model has `create` method for the given `HasMany` relation.
196+
* Assert that the model has `create` method for the given `HasMany` relation.
197197
*
198198
* @param string $class
199199
* @param string $relation
@@ -223,7 +223,7 @@ protected function assertEloquentHasCreateFor(string $class, string $relation, s
223223
}
224224

225225
/**
226-
* Assert that model has `createMany` method for the given `HasMany` relation.
226+
* Assert that the model has `createMany` method for the given `HasMany` relation.
227227
*
228228
* @param string $class
229229
* @param string $relation
@@ -255,7 +255,7 @@ protected function assertEloquentHasCreateManyFor(string $class, string $relatio
255255
}
256256

257257
/**
258-
* Assert that model has the given `BelongsTo` relation.
258+
* Assert that the model has the given `BelongsTo` relation.
259259
*
260260
* @param string $class
261261
* @param string $relation

src/Asserts/LogFileAsserts.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait LogFileAsserts
1010
/**
1111
* Assert that the given log file exists.
1212
*
13-
* The path is relative to `storage/logs` folder.
13+
* The path is relative to the `storage/logs` folder.
1414
*
1515
* @param string $path
1616
* @return void
@@ -24,7 +24,7 @@ protected function seeLogFile(string $path)
2424
/**
2525
* Assert that the given log file doesn't exist.
2626
*
27-
* The path is relative to `storage/logs` folder.
27+
* The path is relative to the `storage/logs` folder.
2828
*
2929
* @param string $path
3030
* @return void
@@ -36,9 +36,9 @@ protected function dontSeeLogFile(string $path)
3636
}
3737

3838
/**
39-
* Assert that log file contains the given message.
39+
* Assert that the log file contains the given message.
4040
*
41-
* The path is relative to `storage/logs` folder.
41+
* The path is relative to the `storage/logs` folder.
4242
*
4343
* @param string $path
4444
* @param string|array $message
@@ -56,9 +56,9 @@ protected function seeInLogFile(string $path, $message)
5656
}
5757

5858
/**
59-
* Assert that log file doesn't contain the given message.
59+
* Assert that the log file doesn't contain the given message.
6060
*
61-
* The path is relative to `storage/logs` folder.
61+
* The path is relative to the `storage/logs` folder.
6262
*
6363
* @param string $path
6464
* @param string|array $message

src/Helpers/ApplicationHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function emulateEnvironment(string $environment)
4040
}
4141

4242
/**
43-
* Check whether application is running on Travis or not.
43+
* Check whether the application is running on Travis or not.
4444
*
4545
* @return bool
4646
*/

src/Helpers/ArtisanHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ trait ArtisanHelpers
1717
protected static $artisanOutput;
1818

1919
/**
20-
* Run artisan command by the class name, and return it.
20+
* Run the given artisan console command.
2121
*
2222
* @param \Illuminate\Console\Command|string $command
2323
* @param array $parameters

0 commit comments

Comments
 (0)