Commit f25ca7e7 authored by Bas de Nooijer's avatar Bas de Nooijer

Improved a unittest to get coverage to 100% again

parent eec736c6
...@@ -112,6 +112,10 @@ class PeclHttpTest extends \PHPUnit_Framework_TestCase ...@@ -112,6 +112,10 @@ class PeclHttpTest extends \PHPUnit_Framework_TestCase
'header' => array( 'header' => array(
'Content-Type: application/json', 'Content-Type: application/json',
'User-Agent: Foo' 'User-Agent: Foo'
),
'authentication' => array(
'username' => 'someone',
'password' => 'S0M3p455',
) )
)); ));
...@@ -123,7 +127,8 @@ class PeclHttpTest extends \PHPUnit_Framework_TestCase ...@@ -123,7 +127,8 @@ class PeclHttpTest extends \PHPUnit_Framework_TestCase
'timeout' => 10, 'timeout' => 10,
'headers' => array( 'headers' => array(
'Content-Type' => 'application/json', 'Content-Type' => 'application/json',
'User-Agent' => 'Foo' 'User-Agent' => 'Foo',
'Authorization' => 'Basic c29tZW9uZTpTME0zcDQ1NQ==',
) )
), $httpRequest->getOptions()); ), $httpRequest->getOptions());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment