Skip to content

Commit de8645f

Browse files
committed
Changed directory structure to psr-4
1 parent 44129e5 commit de8645f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Builder/SelectTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ public function testWhere() {
5454
->from('t', 'test')
5555
->where('a+1<2')
5656
->asString();
57-
$this->assertEquals('SELECT a FROM test t WHERE a+1<2 ;', $str);
57+
$this->assertEquals('SELECT a FROM test t WHERE (a+1<2) ;', $str);
5858

5959
$str = TestSelect::create()
6060
->field('a')
6161
->from('t', 'test')
6262
->where('a < ?', 1000)
6363
->asString();
64-
$this->assertEquals("SELECT a FROM test t WHERE a < '1000' ;", $str);
64+
$this->assertEquals("SELECT a FROM test t WHERE (a < '1000') ;", $str);
6565

6666
$str = TestSelect::create()
6767
->field('a')
6868
->from('t', 'test')
6969
->where('a < :0', 1000)
7070
->asString();
71-
$this->assertEquals("SELECT a FROM test t WHERE a < '1000' ;", $str);
71+
$this->assertEquals("SELECT a FROM test t WHERE (a < '1000') ;", $str);
7272
}
7373

7474
public function testHaving() {
@@ -77,7 +77,7 @@ public function testHaving() {
7777
->from('t', 'test')
7878
->having('a+1<2')
7979
->asString();
80-
$this->assertEquals('SELECT a FROM test t HAVING a+1<2 ;', $str);
80+
$this->assertEquals('SELECT a FROM test t HAVING (a+1<2) ;', $str);
8181
}
8282

8383
public function testOrder() {
@@ -142,6 +142,6 @@ public function testInnerSelect() {
142142
->from('t', $select)
143143
->asString();
144144

145-
$this->assertEquals('SELECT * FROM (SELECT * FROM table a WHERE a.id=1) t ;', $str);
145+
$this->assertEquals('SELECT * FROM (SELECT * FROM table a WHERE (a.id=1)) t ;', $str);
146146
}
147147
}

0 commit comments

Comments
 (0)