Skip to content

Commit 32aa941

Browse files
committed
adjust tests
1 parent 4677b12 commit 32aa941

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/PHPCR/Tests/Util/QOM/Sql2GeneratorTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,41 +46,41 @@ public function testDoubleLiteral()
4646

4747
public function testChildNode()
4848
{
49-
$literal = $this->generator->evalChildNode("/foo/bar/baz");
50-
$this->assertSame("ISCHILDNODE(/foo/bar/baz)", $literal);
49+
$literal = $this->generator->evalChildNode('/foo/bar/baz');
50+
$this->assertSame('ISCHILDNODE(/foo/bar/baz)', $literal);
5151
}
5252

5353
public function testDescendantNode()
5454
{
55-
$literal = $this->generator->evalDescendantNode("/foo/bar/baz");
56-
$this->assertSame("ISDESCENDANTNODE(/foo/bar/baz)", $literal);
55+
$literal = $this->generator->evalDescendantNode('/foo/bar/baz');
56+
$this->assertSame('ISDESCENDANTNODE(/foo/bar/baz)', $literal);
5757
}
5858

5959
public function testPopertyExistence()
6060
{
61-
$literal = $this->generator->evalPropertyExistence(null, "foo");
62-
$this->assertSame("foo IS NOT NULL", $literal);
61+
$literal = $this->generator->evalPropertyExistence(null, 'foo');
62+
$this->assertSame('[foo] IS NOT NULL', $literal);
6363
}
6464

6565
public function testFullTextSearch()
6666
{
67-
$literal = $this->generator->evalFullTextSearch("data", "'foo'");
67+
$literal = $this->generator->evalFullTextSearch('data', "'foo'");
6868
$this->assertSame("CONTAINS(data.*, 'foo')", $literal);
69-
$literal = $this->generator->evalFullTextSearch("data", "'foo'", "bar");
70-
$this->assertSame("CONTAINS(data.bar, 'foo')", $literal);
69+
$literal = $this->generator->evalFullTextSearch('data', "'foo'", 'bar');
70+
$this->assertSame("CONTAINS(data.[bar], 'foo')", $literal);
7171
}
7272

7373
public function testColumns()
7474
{
7575
$literal = $this->generator->evalColumns(null);
76-
$this->assertSame("*", $literal);
77-
$literal = $this->generator->evalColumns(array("bar", "foo"));
78-
$this->assertSame("bar, foo", $literal);
76+
$this->assertSame('*', $literal);
77+
$literal = $this->generator->evalColumns(array('bar', 'foo'));
78+
$this->assertSame('bar, foo', $literal);
7979
}
8080

8181
public function testPropertyValue()
8282
{
83-
$literal = $this->generator->evalPropertyValue("foo");
84-
$this->assertSame("foo", $literal);
83+
$literal = $this->generator->evalPropertyValue('foo');
84+
$this->assertSame('[foo]', $literal);
8585
}
8686
}

0 commit comments

Comments
 (0)