From 53d9336f53316c967a48962a65acd27ee605a3cc Mon Sep 17 00:00:00 2001 From: W0rma Date: Fri, 1 Nov 2019 21:55:04 +0100 Subject: [PATCH] Fix typos in code examples --- src/Stub.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Stub.php b/src/Stub.php index c9cc191..d0218ea 100644 --- a/src/Stub.php +++ b/src/Stub.php @@ -228,7 +228,7 @@ function ($m) { * ``` php * function () { return true; }]); - * Stub::makeEmpty('User', ['save' => true)); + * Stub::makeEmpty('User', ['save' => true]); * ``` * * **To create a mock, pass current testcase name as last argument:** @@ -299,7 +299,7 @@ public static function copy($obj, $params = []) * * ``` php * false), ['name' => 'davert']); + * Stub::construct(new User, ['autosave' => false], ['name' => 'davert']); * ?> * ``` * @@ -353,7 +353,7 @@ public static function construct($class, $constructorParams = [], $params = [], * ``` php * false]); - * Stub::constructEmpty('User', ['autosave' => false), ['name' => 'davert']); + * Stub::constructEmpty('User', ['autosave' => false], ['name' => 'davert']); * ``` * * Accepts either name of class or object of that class @@ -667,7 +667,7 @@ protected static function getMethodsToReplace(\ReflectionClass $reflection, $par * * ``` php * Stub::consecutive('david', 'emma', 'sam', 'amy'))); + * $user = Stub::make('User', ['getName' => Stub::consecutive('david', 'emma', 'sam', 'amy')]); * $user->getName(); //david * $user->getName(); //emma * $user->getName(); //sam