Skip to content

Commit 3a07492

Browse files
committed
fix typo
1 parent 2daca5c commit 3a07492

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

tests/06_Query/QOM/QomTestQueries.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace PHPCR\Tests\Query\QOM;
33

44
use PHPCR\Query\QOM\QueryObjectModelConstantsInterface as Constants;
5+
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
56

67
/**
78
* Test queries for QOM language
@@ -11,7 +12,7 @@
1112
*/
1213
class QomTestQueries
1314
{
14-
public static function getQueries(\PHPCR\Query\QOM\QueryObjectModelFactoryInterface $factory)
15+
public static function getQueries(QueryObjectModelFactoryInterface $factory)
1516
{
1617
$queries = array();
1718

@@ -407,8 +408,8 @@ public static function getQueries(\PHPCR\Query\QOM\QueryObjectModelFactoryInterf
407408
array(),
408409
array());
409410

410-
// SELECT * FROM nt:unstructured WHERE sel.prop > '2013-04-15'
411-
$queries['6.7.27.1.PropertyValue'] =
411+
// SELECT * FROM nt:unstructured WHERE sel.prop > '2013-04-15'
412+
$queries['6.7.27.1.PropertyValue'] =
412413
$factory->createQuery(
413414
$factory->selector('sel', 'nt:unstructured'),
414415
$factory->comparison(

tests/06_Query/QOM/QomToSql2ConverterTest.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
require_once 'Sql2TestQueries.php';
66

77
use Jackalope\Query\QOM; // TODO get rid of jackalope dependency
8+
use PHPCR\Query\QOM\ConstraintInterface;
9+
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
10+
use PHPCR\Query\QOM\SourceInterface;
11+
use PHPCR\Test\BaseCase;
812
use PHPCR\Util\QOM\QomToSql2QueryConverter;
913
use PHPCR\Util\QOM\Sql2Generator;
1014
use PHPCR\Query\QOM\QueryObjectModelConstantsInterface as Constants;
@@ -13,15 +17,15 @@
1317
/**
1418
* Test for PHPCR\Util\QOM\QomToSql2QueryConverter
1519
*/
16-
class QomToSql2ConverterTest extends \PHPCR\Test\BaseCase
20+
class QomToSql2ConverterTest extends BaseCase
1721
{
1822
/**
19-
* @var \PHPCR\Util\QOM\QomToSql2QueryConverter
23+
* @var QomToSql2QueryConverter
2024
*/
2125
protected $parser;
2226

2327
/**
24-
* @var \PHPCR\Query\QOM\QueryObjectModelFactoryInterface
28+
* @var QueryObjectModelFactoryInterface
2529
*/
2630
protected $factory;
2731

@@ -382,11 +386,11 @@ public function testColumns()
382386
* Assert that a QOM query specified by its source, columns, constraint and orderings
383387
* will be converted in the expected SQL2 query.
384388
*
385-
* @param string $expectedSql2 The expected SQL2 query
386-
* @param \PHPCR\Query\QOM\SourceInterface $source The source of the QOM query
387-
* @param array $columns The columns of the QOM query
388-
* @param \PHPCR\Query\QOM\ContraintInterface $constraint The contraint of the QOM query
389-
* @param array $ordering The orderings of the QOM query
389+
* @param string $expectedSql2 The expected SQL2 query
390+
* @param SourceInterface $source The source of the QOM query
391+
* @param array $columns The columns of the QOM query
392+
* @param ConstraintInterface $constraint The contraint of the QOM query
393+
* @param array $ordering The orderings of the QOM query
390394
*/
391395
protected function assertQuery($expectedSql2, $source, $columns = array(), $constraint = null, $ordering = array())
392396
{

0 commit comments

Comments
 (0)