Browse files

Update tests to work with PHPUnit 3.6+.

git-svn-id: http://svn.php.net/repository/pear/packages/Services_Akismet/trunk@321600 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent fa6fcd3 commit 1809bff87f000d6a78a1479f814b676d163bbe00 Michael Gauthier committed Dec 31, 2011
Showing with 9 additions and 14 deletions.
  1. +7 −7 tests/AllTests.php
  2. +2 −7 tests/TestCase.php
View
14 tests/AllTests.php
@@ -3,11 +3,11 @@
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
- * PHPUnit 3.2 AllTests suite for the Services_Akismet package.
+ * PHPUnit AllTests suite for the Services_Akismet package.
*
- * These tests require the PHPUnit 3.2 package to be installed. PHPUnit is
- * installable using PEAR. See the
- * {@link http://www.phpunit.de/pocket_guide/3.2/en/installation.html manual}
+ * These tests require the PHPUnit 3.6 or greater package to be installed.
+ * PHPUnit is installable using PEAR. See the
+ * {@link http://www.phpunit.de/manual/3.6/en/installation.html manual}
* for detailed installation instructions.
*
* This test suite follows the PEAR AllTests conventions as documented at
@@ -39,7 +39,7 @@
* @category Services
* @package Services_Akismet
* @author Michael Gauthier <mike@silverorange.com>
- * @copyright 2008 silverorange
+ * @copyright 2008-2011 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version CVS: $Id$
* @link http://pear.php.net/package/Services_Akismet
@@ -49,7 +49,7 @@
define('PHPUnit_MAIN_METHOD', 'Services_Akismet_AllTests::main');
}
-require_once 'PHPUnit/TextUI/TestRunner.php';
+require_once 'PHPUnit/Autoload.php';
require_once 'SocketsTest.php';
require_once 'StreamsTest.php';
@@ -62,7 +62,7 @@
* @category Services
* @package Services_Akismet
* @author Michael Gauthier <mike@silverorange.com>
- * @copyright 2008 silverorange
+ * @copyright 2008-2011 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @link http://pear.php.net/package/Services_Akismet
*/
View
9 tests/TestCase.php
@@ -36,18 +36,13 @@
* @category Services
* @package Services_Akismet
* @author Michael Gauthier <mike@silverorange.com>
- * @copyright 2008 silverorange
+ * @copyright 2008-2011 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version CVS: $Id$
* @link http://pear.php.net/package/Services_Akismet
*/
/**
- * PHPUnit3 framework
- */
-require_once 'PHPUnit/Framework.php';
-
-/**
* Akismet class to test
*/
require_once 'Services/Akismet.php';
@@ -63,7 +58,7 @@
* @category Services
* @package Services_Akismet
* @author Michael Gauthier <mike@silverorange.com>
- * @copyright 2008 silverorange
+ * @copyright 2008-2011 silverorange
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @link http://pear.php.net/package/Services_Akismet
*/

0 comments on commit 1809bff

Please sign in to comment.