1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * This file is part of the HttpAdapter library.
- *
- * (c) Antoine Corcy <contact@sbin.dk>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Tests\HttpAdapter;
- use HttpAdapter\GuzzleHttpAdapter;
- /**
- * @author Michael Dowling <michael@guzzlephp.org>
- * @author Antoine Corcy <contact@sbin.dk>
- */
- class GuzzleHttpAdapterTest extends \PHPUnit_Framework_TestCase
- {
- protected $guzzle;
- protected function setUp()
- {
- if (!class_exists('Guzzle\Service\Client')) {
- $this->markTestSkipped('Guzzle library has to be installed');
- }
- $this->guzzle = new GuzzleHttpAdapter();
- }
- public function testGetNullContent()
- {
- $this->assertNull($this->guzzle->getContent(null));
- }
- public function testGetFalseContent()
- {
- $this->assertNull($this->guzzle->getContent(false));
- }
- public function testGetName()
- {
- $this->assertEquals('guzzle', $this->guzzle->getName());
- }
- }
|