<?php namespace Unit\Bisna\Service; use Unit\Bisna\Service\Loader; if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Bisna_Service_AllTests::main'); } require_once __DIR__ . '/../../TestInit.php'; class AllTests { public static function main() { \PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new \PHPUnit_Framework_TestSuite('Bisna Service Tests'); $suite->addTest(Loader\AllTests::suite()); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Bisna_Service_AllTests::main') { AllTests::main(); }
public static function suite() { $suite = new \PHPUnit_Framework_TestSuite('Bisna Tests'); $suite->addTest(Service\AllTests::suite()); return $suite; }