-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.php.net/repository/pear/packages/Net_Wifi/trunk@289809 c90b9560-bf6c-de11-be94-00142212c4b1
- Loading branch information
Showing
2 changed files
with
161 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
<?php | ||
/** | ||
* Unit tests for Net_Wifi | ||
* | ||
* PHP Versions 4 and 5 | ||
* | ||
* @category Networking | ||
* @package Net_Wifi | ||
* @subpackage Unittests | ||
* @author Christian Weiske <[email protected]> | ||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 | ||
* @version SVN: $Id$ | ||
* @link http://pear.php.net/package/Net_Wifi | ||
*/ | ||
if (!defined('PHPUnit_MAIN_METHOD')) { | ||
define('PHPUnit_MAIN_METHOD', 'Net_Wifi_AllTests::main'); | ||
} | ||
|
@@ -10,14 +23,34 @@ | |
require_once 'Net_WifiTest.php'; | ||
|
||
|
||
/** | ||
* AllTests for the PEAR-wide test suite. | ||
* "pear run-tests -u" also uses it. | ||
* | ||
* @category Networking | ||
* @package Net_Wifi | ||
* @subpackage Unittests | ||
* @author Christian Weiske <[email protected]> | ||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 | ||
* @link http://pear.php.net/package/Net_Wifi | ||
*/ | ||
class Net_Wifi_AllTests | ||
{ | ||
/** | ||
* Helper function to automatically run the suite with php. | ||
* | ||
* @return void | ||
*/ | ||
public static function main() | ||
{ | ||
|
||
PHPUnit_TextUI_TestRunner::run(self::suite()); | ||
} | ||
|
||
/** | ||
* Setup the Net_Wifi unit test suite and return it. | ||
* | ||
* @return PHPUnit_Framework_TestSuite Test suite | ||
*/ | ||
public static function suite() | ||
{ | ||
$suite = new PHPUnit_Framework_TestSuite('Net_Wifi Tests'); | ||
|
Oops, something went wrong.