Skip to content

Commit c3bbba0

Browse files
authored
Merge pull request #178 from carusogabriel/refactoring-tests
Use assertNotContains
2 parents c41d985 + 60f0fe9 commit c3bbba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPCR/Tests/Util/NodeHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testGenerateAutoNodeName($hint, $expect)
6767
{
6868
$result = NodeHelper::generateAutoNodeName($this->usedNames, $this->namespaces, 'a', $hint);
6969
if (true === $expect) {
70-
$this->assertFalse(strpos($result, ':'));
70+
$this->assertNotContains(':', $result);
7171
} else {
7272
$this->assertEquals($expect, substr($result, 0, strlen($expect)));
7373
}

0 commit comments

Comments
 (0)