Skip to content

Commit

Permalink
Removing sprintf() placeholders that don't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 30, 2010
1 parent efaa2e1 commit 78ac5bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/cake_request.test.php
Expand Up @@ -678,10 +678,10 @@ function testAddDetector() {
$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';
Expand Down

0 comments on commit 78ac5bd

Please sign in to comment.