From 575c3852f1b9c3cc06a29a4b27b7af96e8704575 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 22 Oct 2013 11:30:39 +0200 Subject: [PATCH] more on short array syntax --- tests/acceptance/WebGuy.php | 12 ++++++------ tests/functional/TestGuy.php | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/acceptance/WebGuy.php b/tests/acceptance/WebGuy.php index 397761c..e6cc370 100644 --- a/tests/acceptance/WebGuy.php +++ b/tests/acceptance/WebGuy.php @@ -36,7 +36,7 @@ class WebGuy extends \Codeception\AbstractGuy * * ``` php * submitForm('#login', array('login' => 'davert', 'password' => '123456')); + * $I->submitForm('#login', ['login' => 'davert', 'password' => '123456']); * * ``` * @@ -55,7 +55,7 @@ class WebGuy extends \Codeception\AbstractGuy * * ``` php * submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true))); + * $I->submitForm('#userForm', ['user' => ['login' => 'Davert', 'password' => '123456', 'agree' => true]]); * * ``` * Note, that pricing plan will be set to Paid, as it's selected on page. @@ -89,8 +89,8 @@ class WebGuy extends \Codeception\AbstractGuy * * ``` php * sendAjaxPostRequest('/updateSettings', array('notifications' => true); // POST - * $I->sendAjaxGetRequest('/updateSettings', array('notifications' => true); // GET + * $I->sendAjaxPostRequest('/updateSettings', ['notifications' => true]; // POST + * $I->sendAjaxGetRequest('/updateSettings', ['notifications' => true]; // GET * * ``` * @@ -202,12 +202,12 @@ class WebGuy extends \Codeception\AbstractGuy * // from the official Guzzle manual * $I->amGoingTo('Sign all requests with OAuth'); * $I->executeInGuzzle(function (\Guzzle\Http\Client $client) { - * $client->addSubscriber(new Guzzle\Plugin\Oauth\OauthPlugin(array( + * $client->addSubscriber(new Guzzle\Plugin\Oauth\OauthPlugin([ * 'consumer_key' => '***', * 'consumer_secret' => '***', * 'token' => '***', * 'token_secret' => '***' - * ))); + * ])); * }); * ?> * ``` diff --git a/tests/functional/TestGuy.php b/tests/functional/TestGuy.php index 767d564..58baf56 100644 --- a/tests/functional/TestGuy.php +++ b/tests/functional/TestGuy.php @@ -832,7 +832,7 @@ class TestGuy extends \Codeception\AbstractGuy * * ``` php * submitForm('#login', array('login' => 'davert', 'password' => '123456')); + * $I->submitForm('#login', ['login' => 'davert', 'password' => '123456']); * * ``` * @@ -851,7 +851,7 @@ class TestGuy extends \Codeception\AbstractGuy * * ``` php * submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true))); + * $I->submitForm('#userForm', ['user' => ['login' => 'Davert', 'password' => '123456', 'agree' => true]]); * * ``` * Note, that pricing plan will be set to Paid, as it's selected on page. @@ -1042,8 +1042,8 @@ class TestGuy extends \Codeception\AbstractGuy * * ``` php * sendAjaxPostRequest('/updateSettings', array('notifications' => true); // POST - * $I->sendAjaxGetRequest('/updateSettings', array('notifications' => true); // GET + * $I->sendAjaxPostRequest('/updateSettings', ['notifications' => true]; // POST + * $I->sendAjaxGetRequest('/updateSettings', ['notifications' => true]; // GET * * ``` *