Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
838768d2
Commit
838768d2
authored
Jul 10, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Small comments/todos on QueryBuilderTest.
parent
a9ed0085
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
QueryBuilder.php
lib/Doctrine/ORM/QueryBuilder.php
+3
-3
QueryBuilderTest.php
tests/Doctrine/Tests/ORM/QueryBuilderTest.php
+6
-1
No files found.
lib/Doctrine/ORM/QueryBuilder.php
View file @
838768d2
...
...
@@ -24,8 +24,8 @@ namespace Doctrine\ORM;
use
Doctrine\ORM\Query\Expr
;
/**
* This class is responsible for building DQL query strings via a object oriented
* PHP interface
* This class is responsible for building DQL query strings via a
n
object oriented
* PHP interface
.
*
* TODO: I don't like the API of using the Expr::*() syntax inside of the QueryBuilder
* methods. What can we do to allow them to do it more fluently with the QueryBuilder.
...
...
@@ -33,7 +33,7 @@ use Doctrine\ORM\Query\Expr;
* @author Jonathan H. Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link http://www.
phpdoctrine
.org
* @link http://www.
doctrine-project
.org
* @since 2.0
* @version $Revision$
*/
...
...
tests/Doctrine/Tests/ORM/QueryBuilderTest.php
View file @
838768d2
...
...
@@ -36,6 +36,8 @@ require_once __DIR__ . '/../TestInit.php';
* @link http://www.phpdoctrine.org
* @since 2.0
* @version $Revision$
* @todo Remove QueryBuilder::create. Use constructor in tests instead. Users will use
* $em->createQueryBuilder().
*/
class
QueryBuilderTest
extends
\Doctrine\Tests\OrmTestCase
{
...
...
@@ -50,7 +52,9 @@ class QueryBuilderTest extends \Doctrine\Tests\OrmTestCase
{
$dql
=
$qb
->
getDql
();
$q
=
$qb
->
getQuery
();
//FIXME: QueryBuilder tests should not test the Parser or SQL building, so
// this block should probably be removed.
try
{
$q
->
getSql
();
}
catch
(
\Exception
$e
)
{
...
...
@@ -58,6 +62,7 @@ class QueryBuilderTest extends \Doctrine\Tests\OrmTestCase
echo
$e
->
getTraceAsString
();
$this
->
fail
(
$e
->
getMessage
());
}
//--
$this
->
assertEquals
(
$expectedDql
,
$dql
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment