/*
* Copyright (C) 2008 Alain Peyrat <aljeux@free.fr>
* Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
- * Copyright (c) 2009 Olivier Berger, Institut Télécom
+ * Copyright (c) 2009 Olivier Berger, Institut Télécom
*
* This file is part of FusionForge.
*
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
- *
+ *
* FusionForge is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with FusionForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Site_AllTests::main');
}
+
+if (!@include_once 'PHPUnit/Autoload.php') {
+ include_once 'PHPUnit/Framework.php';
+ require_once 'PHPUnit/TextUI/TestRunner.php';
+}
-require_once 'PHPUnit/Framework.php';
-require_once 'PHPUnit/TextUI/TestRunner.php';
-
-require_once 'Soap/login.php';
-require_once 'Soap/usergroup.php';
-// ...
-
+require_once 'func/config.php';
+require_once 'func/Soap/checks.php';
+require_once 'func/Soap/login.php';
+require_once 'func/Soap/usergroup.php';
+
class Soap_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
-
+
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
-
- // $suite->addTestSuite('CreateProject');
- $suite->addTestSuite('LoginProcess');
- $suite->addTestSuite('UserGroupProcess');
-
- // FIXME: Do not run this test as it requires the cron to be launched
- // $suite->addTestSuite('Top');
- // ...
-
+
+ $suite->addTestSuite('SoapChecksProcess');
+ $suite->addTestSuite('SoapLoginProcess');
+ $suite->addTestSuite('SoapUserGroupProcess');
+
return $suite;
}
}
-
+
if (PHPUnit_MAIN_METHOD == 'Soap_AllTests::main') {
Soap_AllTests::main();
}