mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Removing sprintf() placeholders that don't work.
This commit is contained in:
parent
efaa2e1177
commit
78ac5bd20f
1 changed files with 2 additions and 2 deletions
|
@ -678,10 +678,10 @@ class CakeRequestTestCase extends CakeTestCase {
|
|||
$request->addDetector('compare', array('env' => 'TEST_VAR', 'value' => 'something'));
|
||||
|
||||
$_SERVER['TEST_VAR'] = 'something';
|
||||
$this->assertTrue($request->is('compare'), 'Value match failed %s.');
|
||||
$this->assertTrue($request->is('compare'), 'Value match failed.');
|
||||
|
||||
$_SERVER['TEST_VAR'] = 'wrong';
|
||||
$this->assertFalse($request->is('compare'), 'Value mis-match failed %s.');
|
||||
$this->assertFalse($request->is('compare'), 'Value mis-match failed.');
|
||||
|
||||
$request->addDetector('banana', array('env' => 'TEST_VAR', 'pattern' => '/^ban.*$/'));
|
||||
$_SERVER['TEST_VAR'] = 'banana';
|
||||
|
|
Loading…
Add table
Reference in a new issue