Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
6d30d285
Commit
6d30d285
authored
Jun 14, 2015
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated test for PHP7
parent
7817cfdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/Solarium/Tests/QueryType/Update/Query/Command/AddTest.php
...Solarium/Tests/QueryType/Update/Query/Command/AddTest.php
+6
-0
No files found.
tests/Solarium/Tests/QueryType/Update/Query/Command/AddTest.php
View file @
6d30d285
...
...
@@ -64,6 +64,12 @@ class AddTest extends \PHPUnit_Framework_TestCase
public
function
testAddDocumentWithInvalidDocument
()
{
// Starting from PHP7 typehints are checked by PHP and handled using a TypeException. For versions 5.x Solarium
// needs to do this, so only test for those versions.
if
(
version_compare
(
PHP_VERSION
,
'6.0.0'
)
>=
0
)
{
$this
->
markTestSkipped
(
'Typehint handling check not needed, built into current PHP version'
);
}
try
{
$doc
=
new
\StdClass
();
$this
->
command
->
addDocument
(
$doc
);
...
...
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