We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d236c35 commit 92d1da7Copy full SHA for 92d1da7
1 file changed
README.md
@@ -165,10 +165,14 @@ This patcher allows replacement of constant value.
165
~~~php
166
public function test_index()
167
{
168
- MonkeyPatch::patchConstant('ENVIRONMENT', 'development', Welcome::class . '::index');
169
-
+ MonkeyPatch::patchConstant(
+ 'ENVIRONMENT',
170
+ 'development',
171
+ Welcome::class . '::index'
172
+ );
173
+
174
$output = $this->request('GET', 'welcome/index');
175
176
$this->assertContains('development', $output);
177
}
178
~~~
0 commit comments