@@ -33,7 +33,7 @@ public function testAddOrderBy()
33
33
$ qb = new QueryBuilder ($ this ->qf );
34
34
$ qb ->addOrderBy ($ dynamicOperand , 'ASC ' );
35
35
$ qb ->addOrderBy ($ dynamicOperand , 'DESC ' );
36
- $ this ->assertEquals (2 , count ( $ qb ->getOrderings () ));
36
+ $ this ->assertCount (2 , $ qb ->getOrderings ());
37
37
$ orderings = $ qb ->getOrderings ();
38
38
}
39
39
@@ -43,7 +43,7 @@ public function testAddOrderByLowercase()
43
43
$ qb = new QueryBuilder ($ this ->qf );
44
44
$ qb ->addOrderBy ($ dynamicOperand , 'asc ' );
45
45
$ qb ->addOrderBy ($ dynamicOperand , 'desc ' );
46
- $ this ->assertEquals (2 , count ( $ qb ->getOrderings () ));
46
+ $ this ->assertCount (2 , $ qb ->getOrderings ());
47
47
$ orderings = $ qb ->getOrderings ();
48
48
}
49
49
@@ -63,7 +63,7 @@ public function testOrderBy()
63
63
$ qb = new QueryBuilder ($ this ->qf );
64
64
$ qb ->orderBy ($ dynamicOperand , 'ASC ' );
65
65
$ qb ->orderBy ($ dynamicOperand , 'ASC ' );
66
- $ this ->assertEquals (1 , count ( $ qb ->getOrderings () ));
66
+ $ this ->assertCount (1 , $ qb ->getOrderings ());
67
67
}
68
68
69
69
public function testOrderAscending ()
@@ -135,21 +135,21 @@ public function testOrWhere()
135
135
public function testSelect ()
136
136
{
137
137
$ qb = new QueryBuilder ($ this ->qf );
138
- $ this ->assertEquals (0 , count ( $ qb ->getColumns () ));
138
+ $ this ->assertCount (0 , $ qb ->getColumns ());
139
139
$ qb ->select ('selectorName ' , 'propertyName ' , 'columnName ' );
140
- $ this ->assertEquals (1 , count ( $ qb ->getColumns () ));
140
+ $ this ->assertCount (1 , $ qb ->getColumns ());
141
141
$ qb ->select ('selectorName ' , 'propertyName ' , 'columnName ' );
142
- $ this ->assertEquals (1 , count ( $ qb ->getColumns () ));
142
+ $ this ->assertCount (1 , $ qb ->getColumns ());
143
143
}
144
144
145
145
public function testAddSelect ()
146
146
{
147
147
$ qb = new QueryBuilder ($ this ->qf );
148
- $ this ->assertEquals (0 , count ( $ qb ->getColumns () ));
148
+ $ this ->assertCount (0 , $ qb ->getColumns ());
149
149
$ qb ->addSelect ('selectorName ' , 'propertyName ' , 'columnName ' );
150
- $ this ->assertEquals (1 , count ( $ qb ->getColumns () ));
150
+ $ this ->assertCount (1 , $ qb ->getColumns ());
151
151
$ qb ->addSelect ('selectorName ' , 'propertyName ' , 'columnName ' );
152
- $ this ->assertEquals (2 , count ( $ qb ->getColumns () ));
152
+ $ this ->assertCount (2 , $ qb ->getColumns ());
153
153
}
154
154
155
155
public function testFrom ()
@@ -254,7 +254,7 @@ public function testSetParameters()
254
254
$ key2 = "key2 " ;
255
255
$ value2 = "value2 " ;
256
256
$ qb ->setParameters (array ($ key1 , $ value1 ), array ($ key2 , $ value2 ));
257
- $ this ->assertEquals ( " 2 " , count ( $ qb ->getParameters () ));
257
+ $ this ->assertCount ( 2 , $ qb ->getParameters ());
258
258
}
259
259
260
260
public function testExecute ()
0 commit comments