File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ sudo: false
14
14
matrix :
15
15
include :
16
16
- php : 5.3
17
+ dist : precise
17
18
env : PACKAGE_VERSION=low
18
19
19
20
before_script :
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ protected function scan($sql2)
159
159
$ token = strtok (" \n\t" );
160
160
}
161
161
162
- $ regexp = '' ;
162
+ $ regexp = array () ;
163
163
foreach ($ tokens as $ token ) {
164
164
$ regexp [] = preg_quote ($ token , '/ ' );
165
165
}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function testNodeUpdate($options)
88
88
$ this ->setupQueryManager ($ options );
89
89
90
90
$ args = array (
91
- '--query-language ' => null ,
91
+ '--query-language ' => ' jcr-sql2 ' ,
92
92
'--query ' => $ options ['query ' ],
93
93
'--no-interaction ' => true ,
94
94
'--set-prop ' => array (),
Original file line number Diff line number Diff line change 2
2
3
3
namespace PHPCR \Tests \Util \QOM ;
4
4
5
+ use PHPCR \Query \QOM \QueryObjectModelFactoryInterface ;
5
6
use PHPCR \Util \QOM \Sql2ToQomQueryConverter ;
7
+ use PHPCR \Util \ValueConverter ;
6
8
7
9
class Sql2ToQomQueryConverterTest extends \PHPUnit_Framework_TestCase
8
10
{
11
+ /**
12
+ * @var QueryObjectModelFactoryInterface
13
+ */
9
14
protected $ qomFactory ;
15
+
16
+ /**
17
+ * @var ValueConverter
18
+ */
10
19
protected $ valueConverter ;
11
20
21
+ /**
22
+ * @var Sql2ToQomQueryConverter
23
+ */
24
+ protected $ converter ;
25
+
12
26
public function setUp ()
13
27
{
14
28
$ this ->qomFactory = $ this ->getMock ('PHPCR\Query\QOM\QueryObjectModelFactoryInterface ' );
You can’t perform that action at this time.
0 commit comments