@@ -228,7 +228,7 @@ function ($m) {
228
228
* ``` php
229
229
* <?php
230
230
* Stub::makeEmpty('User', ['save' => function () { return true; }]);
231
- * Stub::makeEmpty('User', ['save' => true) );
231
+ * Stub::makeEmpty('User', ['save' => true] );
232
232
* ```
233
233
*
234
234
* **To create a mock, pass current testcase name as last argument:**
@@ -299,7 +299,7 @@ public static function copy($obj, $params = [])
299
299
*
300
300
* ``` php
301
301
* <?php
302
- * Stub::construct(new User, ['autosave' => false) , ['name' => 'davert']);
302
+ * Stub::construct(new User, ['autosave' => false] , ['name' => 'davert']);
303
303
* ?>
304
304
* ```
305
305
*
@@ -353,7 +353,7 @@ public static function construct($class, $constructorParams = [], $params = [],
353
353
* ``` php
354
354
* <?php
355
355
* Stub::constructEmpty('User', ['autosave' => false]);
356
- * Stub::constructEmpty('User', ['autosave' => false) , ['name' => 'davert']);
356
+ * Stub::constructEmpty('User', ['autosave' => false] , ['name' => 'davert']);
357
357
* ```
358
358
*
359
359
* Accepts either name of class or object of that class
@@ -667,7 +667,7 @@ protected static function getMethodsToReplace(\ReflectionClass $reflection, $par
667
667
*
668
668
* ``` php
669
669
* <?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')] );
671
671
* $user->getName(); //david
672
672
* $user->getName(); //emma
673
673
* $user->getName(); //sam
0 commit comments