Skip to content

Commit

Permalink
fix CS a bit in tests
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Net_Wifi/trunk@289809 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
cweiske committed Oct 20, 2009
1 parent 5e5259b commit 56199d0
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 93 deletions.
35 changes: 34 additions & 1 deletion tests/AllTests.php
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');
}
Expand All @@ -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');
Expand Down
Loading

0 comments on commit 56199d0

Please sign in to comment.