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
d877b823
Commit
d877b823
authored
Jul 30, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
c045174f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
QueryTestCase.php
tests/Search/QueryTestCase.php
+9
-9
No files found.
tests/Search/QueryTestCase.php
View file @
d877b823
...
...
@@ -57,14 +57,14 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$e
->
save
();
}
/*'
public
function
testTokenizeClauseSupportsAndOperator
()
{
$q
=
new
Doctrine_Search_Query
(
'SearchTestIndex'
);
$ret
=
$q
->
tokenizeClause
(
'doctrine AND orm'
);
$this->assertEqual($ret, array(
'doctrine', 'orm'
));
$this
->
assertEqual
(
$ret
,
array
(
array
(
'doctrine'
,
'orm'
)
));
}
public
function
testTokenizeClauseSupportsOrOperator
()
...
...
@@ -73,7 +73,7 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$ret
=
$q
->
tokenizeClause
(
'doctrine OR orm'
);
$this->assertIdentical($ret, array(
array('doctrine', 'orm')
));
$this
->
assertIdentical
(
$ret
,
array
(
'doctrine'
,
'orm'
));
}
public
function
testTokenizeClauseSupportsMixingOfOperators
()
...
...
@@ -81,7 +81,7 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$q
=
new
Doctrine_Search_Query
(
'SearchTestIndex'
);
$ret
=
$q
->
tokenizeClause
(
'doctrine OR orm OR dbal AND database OR rdbms'
);
$expected = array(
array('doctrine', 'orm', 'dbal'), array('database', 'rdbms')
);
$expected
=
array
(
'doctrine'
,
'orm'
,
array
(
'dbal'
,
'database'
),
'rdbms'
);
$this
->
assertEqual
(
$ret
,
$expected
);
}
...
...
@@ -92,7 +92,7 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$ret
=
$q
->
tokenizeClause
(
'doctrine OR orm dbal AND database OR rdbms'
);
$expected = array(
array('doctrine', 'orm'), 'dbal', array('database', 'rdbms')
);
$expected
=
array
(
'doctrine'
,
array
(
'orm'
,
'dbal'
,
'database'
),
'rdbms'
);
$this
->
assertEqual
(
$ret
,
$expected
);
}
...
...
@@ -102,11 +102,11 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$q
=
new
Doctrine_Search_Query
(
'SearchTestIndex'
);
$ret
=
$q
->
tokenizeClause
(
'doctrine OR orm OR (dbal AND database OR rdbms)'
);
$expected = array(
array('doctrine', 'orm', '(dbal AND database OR rdbms)')
);
$expected
=
array
(
'doctrine'
,
'orm'
,
'(dbal and database or rdbms)'
);
$this
->
assertEqual
(
$ret
,
$expected
);
}
/*
public function testParseClauseSupportsAndOperator()
{
$q = new Doctrine_Search_Query('SearchTestIndex');
...
...
@@ -186,7 +186,7 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($ret, $sql);
}
*/
public function testParseClauseSupportsNegationOperator()
{
$q = new Doctrine_Search_Query('SearchTestIndex');
...
...
@@ -258,7 +258,7 @@ class Doctrine_Search_Query_TestCase extends Doctrine_UnitTestCase
$this->assertEqual($q->getSql(), $sql);
}
*/
public function testSearchSupportsMixingOfOperators()
{
$q = new Doctrine_Search_Query('SearchTestIndex');
...
...
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