|
2 | 2 | namespace PHPCR\Tests\Query\QOM;
|
3 | 3 |
|
4 | 4 | require_once(__DIR__ . '/../../../inc/BaseCase.php');
|
5 |
| -require_once('Sql2TestQueries.php'); |
| 5 | +require_once 'Sql2TestQueries.php'; |
6 | 6 |
|
7 | 7 | use Jackalope\Query\QOM; // TODO get rid of jackalope dependency
|
8 | 8 | use PHPCR\Util\QOM\QomToSql2QueryConverter;
|
@@ -38,7 +38,7 @@ public function setUp()
|
38 | 38 | $this->parser = new QomToSql2QueryConverter(new Sql2Generator(new ValueConverter()));
|
39 | 39 | try {
|
40 | 40 | $this->factory = $this->sharedFixture['session']->getWorkspace()->getQueryManager()->getQOMFactory();
|
41 |
| - } catch(\PHPCR\UnsupportedRepositoryException $e) { |
| 41 | + } catch (\PHPCR\UnsupportedRepositoryException $e) { |
42 | 42 | $this->markTestSkipped('Repository does not support the QOM factory');
|
43 | 43 | }
|
44 | 44 | $this->queries = Sql2TestQueries::getQueries();
|
@@ -364,7 +364,6 @@ public function testBindVariable()
|
364 | 364 | $this->assertQuery($this->queries['6.7.35.BindValue'], $selector, array(), $constraint, array());
|
365 | 365 | }
|
366 | 366 |
|
367 |
| - |
368 | 367 | /**
|
369 | 368 | * 6.7.38 Order
|
370 | 369 | */
|
@@ -395,18 +394,17 @@ public function testColumns()
|
395 | 394 | $this->assertQuery($this->queries['6.7.39.Colum.Mixed'], $selector, array($col1, $col2, $col3));
|
396 | 395 | }
|
397 | 396 |
|
398 |
| - |
399 | 397 | // -------------------------------------------------------------------------
|
400 | 398 |
|
401 | 399 | /**
|
402 | 400 | * Assert that a QOM query specified by its source, columns, constraint and orderings
|
403 | 401 | * will be converted in the expected SQL2 query.
|
404 | 402 | *
|
405 |
| - * @param string $expectedSql2 The expected SQL2 query |
406 |
| - * @param \PHPCR\Query\QOM\SourceInterface $source The source of the QOM query |
407 |
| - * @param array $columns The columns of the QOM query |
408 |
| - * @param \PHPCR\Query\QOM\ContraintInterface $constraint The contraint of the QOM query |
409 |
| - * @param array $ordering The orderings of the QOM query |
| 403 | + * @param string $expectedSql2 The expected SQL2 query |
| 404 | + * @param \PHPCR\Query\QOM\SourceInterface $source The source of the QOM query |
| 405 | + * @param array $columns The columns of the QOM query |
| 406 | + * @param \PHPCR\Query\QOM\ContraintInterface $constraint The contraint of the QOM query |
| 407 | + * @param array $ordering The orderings of the QOM query |
410 | 408 | */
|
411 | 409 | protected function assertQuery($expectedSql2, $source, $columns = array(), $constraint = null, $ordering = array())
|
412 | 410 | {
|
|
0 commit comments