Skip to content
Permalink
Browse files

Ensure non conflicting placeholders in unit tests

  • Loading branch information...
coryjthompson committed Jan 26, 2017
1 parent 7d1cdde commit f242029a2fd30dda32bc92cae81545808641b02b
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/TestCase/Database/ValueBinderTest.php
@@ -124,15 +124,15 @@ public function testResetCount()
$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());
}

0 comments on commit f242029

Please sign in to comment.
You can’t perform that action at this time.