SocketKeepaliveTest.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // Read local configuration
  3. if (! defined('TESTS_ZEND_HTTP_CLIENT_BASEURI') &&
  4. is_readable('TestConfiguration.php')) {
  5. require_once 'TestConfiguration.php';
  6. }
  7. require_once realpath(dirname(__FILE__) . '/../../../') . '/TestHelper.php';
  8. require_once 'Zend/Http/Client.php';
  9. require_once 'PHPUnit/Framework/TestCase.php';
  10. require_once 'SocketTest.php';
  11. /**
  12. * This Testsuite includes all Zend_Http_Client that require a working web
  13. * server to perform. It was designed to be extendable, so that several
  14. * test suites could be run against several servers, with different client
  15. * adapters and configurations.
  16. *
  17. * Note that $this->baseuri must point to a directory on a web server
  18. * containing all the files under the _files directory. You should symlink
  19. * or copy these files and set 'baseuri' properly.
  20. *
  21. * You can also set the proper constand in your test configuration file to
  22. * point to the right place.
  23. *
  24. * @category Zend
  25. * @package Zend_Http_Client
  26. * @subpackage UnitTests
  27. * @version $Id$
  28. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  29. * @license http://framework.zend.com/license/new-bsd New BSD License
  30. */
  31. class Zend_Http_Client_SocketKeepaliveTest extends Zend_Http_Client_SocketTest
  32. {
  33. /**
  34. * Configuration array
  35. *
  36. * @var array
  37. */
  38. protected $config = array(
  39. 'adapter' => 'Zend_Http_Client_Adapter_Socket',
  40. 'keepalive' => true
  41. );
  42. }