Permalink
Browse files

PHPUnit 3.6+

  • Loading branch information...
1 parent 263f1f2 commit b0304e312af3834d2ec8aa88b17afb82a1323ec3 @CloCkWeRX CloCkWeRX committed Jan 9, 2012
Showing with 4 additions and 22 deletions.
  1. +2 −11 tests/HTTP_HeaderTest.php
  2. +2 −11 tests/HTTP_Header_CacheTest.php
@@ -5,25 +5,16 @@
* $Id$
*/
-require_once 'PHPUnit.php';
+require_once 'PHPUnit/Framework/TestCase.php';
require_once 'HTTP/Header.php';
-class HTTP_HeaderTest extends PHPUnit_TestCase
+class HTTP_HeaderTest extends PHPUnit_Framework_TestCase
{
- function HTTP_HeaderTest($name)
- {
- $this->PHPUnit_TestCase($name);
- }
-
function setUp()
{
$this->testScript = 'http://local/www/mike/pear/HTTP_Header/tests/response.php';
}
- function tearDown()
- {
- }
-
function testHTTP_Header()
{
$h = &new HTTP_Header;
@@ -5,25 +5,16 @@
* Id$
*/
-require_once 'PHPUnit.php';
+require_once 'PHPUnit/Framework/TestCase.php';
require_once 'HTTP/Header/Cache.php';
-class HTTP_Header_CacheTest extends PHPUnit_TestCase
+class HTTP_Header_CacheTest extends PHPUnit_Framework_TestCase
{
- function HTTP_Header_CacheTest($name)
- {
- $this->PHPUnit_TestCase($name);
- }
-
function setUp()
{
$this->testScript = 'http://local/www/mike/pear/HTTP_Header/tests/cacheresponse.php';
}
- function tearDown()
- {
- }
-
function testHTTP_Header_Cache()
{
$this->assertTrue(is_a(new HTTP_Header_Cache, 'HTTP_Header_Cache'));

0 comments on commit b0304e3

Please sign in to comment.