Skip to content

Commit a3f37a7

Browse files
Merge pull request #46 from merk/configurable-client-options
Allow client options to be configured in tests.
2 parents c4688ed + 8677ce7 commit a3f37a7

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Test/Functional/WebTestCase.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,21 @@ public static function assertNull($actual, $message = '')
157157
protected static function initializeClient()
158158
{
159159
return static::createClient(
160-
array('environment' => static::ENVIRONMENT),
160+
static::getClientOptions(),
161161
static::getServerParameters()
162162
);
163163
}
164164

165+
/**
166+
* Overwritable method for client's options
167+
*
168+
* @return array
169+
*/
170+
protected static function getClientOptions()
171+
{
172+
return array('environment' => static::ENVIRONMENT);
173+
}
174+
165175
/**
166176
* Overwritable method for client's server configuration
167177
*

0 commit comments

Comments
 (0)