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
ddcbf791
Commit
ddcbf791
authored
Jan 20, 2013
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated curl adapter unittests
parent
76900b35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/Solarium/Tests/Core/Client/Adapter/CurlTest.php
tests/Solarium/Tests/Core/Client/Adapter/CurlTest.php
+5
-2
No files found.
tests/Solarium/Tests/Core/Client/Adapter/CurlTest.php
View file @
ddcbf791
...
@@ -55,15 +55,18 @@ class CurlTest extends \PHPUnit_Framework_TestCase
...
@@ -55,15 +55,18 @@ class CurlTest extends \PHPUnit_Framework_TestCase
{
{
$data
=
'data'
;
$data
=
'data'
;
$headers
=
array
(
'X-dummy: data'
);
$headers
=
array
(
'X-dummy: data'
);
$handler
=
curl_init
();
// this should be ok, no exception
// this should be ok, no exception
$this
->
adapter
->
check
(
$data
,
$headers
);
$this
->
adapter
->
check
(
$data
,
$headers
,
$handler
);
$data
=
''
;
$data
=
''
;
$headers
=
array
();
$headers
=
array
();
$this
->
setExpectedException
(
'Solarium\Exception\HttpException'
);
$this
->
setExpectedException
(
'Solarium\Exception\HttpException'
);
$this
->
adapter
->
check
(
$data
,
$headers
);
$this
->
adapter
->
check
(
$data
,
$headers
,
$handler
);
curl_close
(
$handler
);
}
}
public
function
testExecute
()
public
function
testExecute
()
...
...
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