Browse Source

Ensure non conflicting placeholders in unit tests

Cory Thompson 9 years ago
parent
commit
f242029a2f
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/TestCase/Database/ValueBinderTest.php

+ 6 - 6
tests/TestCase/Database/ValueBinderTest.php

@@ -124,15 +124,15 @@ class ValueBinderTest extends TestCase
         $this->assertCount(2, $valueBinder->bindings());
 
         // Ensure the placeholder generation IS affected by resetCount
-        $valueBinder->placeholder('c');
-        $valueBinder->placeholder('c');
-        $result = $valueBinder->placeholder('c');
-        $this->assertEquals(':c2', $result);
+        $valueBinder->placeholder('param');
+        $valueBinder->placeholder('param');
+        $result = $valueBinder->placeholder('param');
+        $this->assertEquals(':param2', $result);
 
         $valueBinder->resetCount();
 
-        $placeholder = $valueBinder->placeholder('c');
-        $this->assertEquals(':c0', $placeholder);
+        $placeholder = $valueBinder->placeholder('param');
+        $this->assertEquals(':param0', $placeholder);
         $this->assertCount(2, $valueBinder->bindings());
     }