Skip to content

Commit 53d9336

Browse files
authored
Fix typos in code examples
1 parent 016a035 commit 53d9336

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function ($m) {
228228
* ``` php
229229
* <?php
230230
* Stub::makeEmpty('User', ['save' => function () { return true; }]);
231-
* Stub::makeEmpty('User', ['save' => true));
231+
* Stub::makeEmpty('User', ['save' => true]);
232232
* ```
233233
*
234234
* **To create a mock, pass current testcase name as last argument:**
@@ -299,7 +299,7 @@ public static function copy($obj, $params = [])
299299
*
300300
* ``` php
301301
* <?php
302-
* Stub::construct(new User, ['autosave' => false), ['name' => 'davert']);
302+
* Stub::construct(new User, ['autosave' => false], ['name' => 'davert']);
303303
* ?>
304304
* ```
305305
*
@@ -353,7 +353,7 @@ public static function construct($class, $constructorParams = [], $params = [],
353353
* ``` php
354354
* <?php
355355
* Stub::constructEmpty('User', ['autosave' => false]);
356-
* Stub::constructEmpty('User', ['autosave' => false), ['name' => 'davert']);
356+
* Stub::constructEmpty('User', ['autosave' => false], ['name' => 'davert']);
357357
* ```
358358
*
359359
* Accepts either name of class or object of that class
@@ -667,7 +667,7 @@ protected static function getMethodsToReplace(\ReflectionClass $reflection, $par
667667
*
668668
* ``` php
669669
* <?php
670-
* $user = Stub::make('User', array('getName' => Stub::consecutive('david', 'emma', 'sam', 'amy')));
670+
* $user = Stub::make('User', ['getName' => Stub::consecutive('david', 'emma', 'sam', 'amy')]);
671671
* $user->getName(); //david
672672
* $user->getName(); //emma
673673
* $user->getName(); //sam

0 commit comments

Comments
 (0)