Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Line endings

  • Loading branch information...
commit 427cab655d3d3ccb5d303ead33b678ae7a93fd83 1 parent fe80cd6
Mat Gadd authored
62 tests/AllTests.php
... ... @@ -1,31 +1,31 @@
1   -<?php
2   -if (!defined('PHPUnit_MAIN_METHOD')) {
3   - define('PHPUnit_MAIN_METHOD', 'AllTests::main');
4   -}
5   -
6   -require_once 'XMPPHP/LogTest.php';
7   -require_once 'XMPPHP/XMLObjTest.php';
8   -require_once 'XMPPHP/XMPPTest.php';
9   -
10   -class AllTests
11   -{
12   - public static function main()
13   - {
14   - PHPUnit_TextUI_TestRunner::run(self::suite());
15   - }
16   -
17   - public static function suite()
18   - {
19   - $suite = new PHPUnit_Framework_TestSuite();
20   -
21   - $suite->addTestSuite('XMPPHP_LogTest');
22   - $suite->addTestSuite('XMPPHP_XMLObjTest');
23   - $suite->addTestSuite('XMPPHP_XMPPTest');
24   -
25   - return $suite;
26   - }
27   -}
28   -
29   -if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
30   - AllTests::main();
31   -}
  1 +<?php
  2 +if (!defined('PHPUnit_MAIN_METHOD')) {
  3 + define('PHPUnit_MAIN_METHOD', 'AllTests::main');
  4 +}
  5 +
  6 +require_once 'XMPPHP/LogTest.php';
  7 +require_once 'XMPPHP/XMLObjTest.php';
  8 +require_once 'XMPPHP/XMPPTest.php';
  9 +
  10 +class AllTests
  11 +{
  12 + public static function main()
  13 + {
  14 + PHPUnit_TextUI_TestRunner::run(self::suite());
  15 + }
  16 +
  17 + public static function suite()
  18 + {
  19 + $suite = new PHPUnit_Framework_TestSuite();
  20 +
  21 + $suite->addTestSuite('XMPPHP_LogTest');
  22 + $suite->addTestSuite('XMPPHP_XMLObjTest');
  23 + $suite->addTestSuite('XMPPHP_XMPPTest');
  24 +
  25 + return $suite;
  26 + }
  27 +}
  28 +
  29 +if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
  30 + AllTests::main();
  31 +}
2  tests/XMPPHP/LogTest.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2
3   -require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/Log.php';
  3 +require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/Log.php';
4 4
5 5 class XMPPHP_LogTest extends PHPUnit_Framework_TestCase
6 6 {
2  tests/XMPPHP/XMLObjTest.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2
3   -require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/XMLObj.php';
  3 +require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/XMLObj.php';
4 4
5 5 class XMPPHP_XMLObjTest extends PHPUnit_Framework_TestCase
6 6 {
2  tests/XMPPHP/XMPPTest.php
... ... @@ -1,6 +1,6 @@
1 1 <?php
2 2
3   -require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/XMPP.php';
  3 +require_once dirname(dirname(dirname(__FILE__))) . '/XMPPHP/XMPP.php';
4 4
5 5 class XMPPHP_XMPPTest extends PHPUnit_Framework_TestCase
6 6 {

0 comments on commit 427cab6

Please sign in to comment.
Something went wrong with that request. Please try again.