public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_YARouter'); $suite->addTestSuite('Zend_YARoute_Test'); $suite->addTestSuite('Zend_YARouter_Test'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Controller'); $suite->addTestSuite('Zend_Controller_RouteTest'); $suite->addTestSuite('Zend_Controller_RewriteRouterTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('DiggMore - DAO'); $suite->addTestSuite('DAOFactoryTest'); $suite->addTestSuite('MemberDAOTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Feed'); $suite->addTestSuite('Zend_Feed_AtomTest'); $suite->addTestSuite('Zend_Feed_RssTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_HttpClient'); $suite->addTestSuite('Zend_Http_ClientTest'); $suite->addTestSuite('Zend_Http_ResponseTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework'); $suite->addTestSuite('ZendTest'); $suite->addTest(Zend_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('PEAR - Net_IDNA2'); $suite->addTestSuite('Net_IDNA2Test'); $suite->addTestSuite('draft-josefsson-idn-test-vectors'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Mime'); $suite->addTestSuite('Zend_Mime_PartTest'); $suite->addTestSuite('Zend_Mime_MessageTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Mail'); $suite->addTestSuite('Zend_Mail_ListTest'); $suite->addTestSuite('Zend_Mail_MboxTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('PHPUnit Extensions'); $suite->addTestSuite('PHPUnit2_Tests_Extensions_ExceptionTestCaseTest'); $suite->addTestSuite('PHPUnit2_Tests_Extensions_ExtensionTest'); $suite->addTestSuite('PHPUnit2_Tests_Extensions_RepeatedTestTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Config'); $suite->addTestSuite('Zend_Config_IniTest'); $suite->addTestSuite('Zend_Config_ArrayTest'); $suite->addTestSuite('Zend_Config_XmlTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Services'); /** Add testsuites, if there is. */ $suite->addTestSuite('YouTubeTest'); $suite->addTestSuite('Bug9917'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('PHPUnit'); $suite->addTest(PHPUnit2_Tests_Framework_AllTests::suite()); $suite->addTest(PHPUnit2_Tests_Extensions_AllTests::suite()); $suite->addTest(PHPUnit2_Tests_Runner_AllTests::suite()); return $suite; }
public function testNoArgTestCasePasses() { $result = new PHPUnit2_Framework_TestResult(); $t = new PHPUnit2_Framework_TestSuite('PHPUnit2_Tests_NoArgTestCaseTest'); $t->run($result); $this->assertEquals(1, $result->runCount()); $this->assertEquals(0, $result->failureCount()); $this->assertEquals(0, $result->errorCount()); }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite; $suite->addTestFile( 'ScriptReorganizer/Tests/Strategy/AllTests.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/AllTests.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/AllTests.php' ); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite; $suite->addTestFile( 'ScriptReorganizer/Tests/Strategy/RouteTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Strategy/QuietTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Strategy/PackTest.php' ); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Mail'); $suite->addTestSuite('Zend_Mail_ListTest'); $suite->addTestSuite('Zend_Mail_MboxTest'); if (TESTS_ZEND_MAIL_POP3_ENABLED) { $suite->addTestSuite('Zend_Mail_Pop3Test'); } return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend'); $suite->addTestSuite('Zend_FeedTest'); $suite->addTest(Zend_Http_AllTests::suite()); $suite->addTestSuite('Zend_JsonTest'); $suite->addTestSuite('Zend_MimeTest'); $suite->addTest(Zend_Mime_AllTests::suite()); $suite->addTest(Zend_Pdf_AllTests::suite()); $suite->addTestSuite('Zend_UriTest'); $suite->addTest(Zend_Uri_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Cache'); $suite->addTestSuite('Zend_Cache_FactoryTest'); $suite->addTestSuite('Zend_Cache_CoreTest'); $suite->addTestSuite('Zend_Cache_FileBackendTest'); $suite->addTestSuite('Zend_Cache_OutputFrontendTest'); $suite->addTestSuite('Zend_Cache_FunctionFrontendTest'); $suite->addTestSuite('Zend_Cache_ClassFrontendTest'); $suite->addTestSuite('Zend_Cache_SqliteBackendTest'); $suite->addTestSuite('Zend_Cache_FileFrontendTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Feed'); $suite->addTestSuite('Zend_Feed_ArrayAccessTest'); $suite->addTestSuite('Zend_Feed_AtomEntryOnlyTest'); $suite->addTestSuite('Zend_Feed_AtomPublishingTest'); $suite->addTestSuite('Zend_Feed_CountTest'); $suite->addTestSuite('Zend_Feed_ElementTest'); $suite->addTestSuite('Zend_Feed_ImportTest'); $suite->addTestSuite('Zend_Feed_IteratorTest'); return $suite; }
public function __construct() { $this->parent = parent::__construct(); foreach (get_declared_classes() as $class) { $this->seen[$class] = 1; } }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('PHPUnit Framework'); $suite->addTestSuite('PHPUnit2_Tests_Framework_AssertTest'); $suite->addTestSuite('PHPUnit2_Tests_Framework_ComparisonFailureTest'); $suite->addTestSuite('PHPUnit2_Tests_Framework_SuiteTest'); $suite->addTestSuite('PHPUnit2_Tests_Framework_TestCaseTest'); $suite->addTestSuite('PHPUnit2_Tests_Framework_TestImplementorTest'); $suite->addTestSuite('PHPUnit2_Tests_Framework_TestListenerTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite; $suite->addTestFile( 'ScriptReorganizer/Tests/Type/ScriptTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/LibraryTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/EolTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/HashBangTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/HeredocTest.php' ); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite; $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/AddFooterTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/AddHeaderTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/AddHeaderAndFooterTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/BcompileTest.php' ); $suite->addTestFile( 'ScriptReorganizer/Tests/Type/Decorator/PharizeTest.php' ); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Cache'); $suite->addTestSuite('Zend_Cache_FactoryTest'); $suite->addTestSuite('Zend_Cache_CoreTest'); $suite->addTestSuite('Zend_Cache_FileBackendTest'); $suite->addTestSuite('Zend_Cache_OutputFrontendTest'); $suite->addTestSuite('Zend_Cache_FunctionFrontendTest'); $suite->addTestSuite('Zend_Cache_ClassFrontendTest'); if (defined('TESTS_ZEND_CACHE_SQLITE')) { if (TESTS_ZEND_CACHE_SQLITE) { $suite->addTestSuite('Zend_Cache_SqliteBackendTest'); } } else { // if not defined (partial tests only for Zend_Cache for example), we // assume everything is ok $suite->addTestSuite('Zend_Cache_SqliteBackendTest'); } $suite->addTestSuite('Zend_Cache_FileFrontendTest'); return $suite; }
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Uri'); $suite->addTestSuite('Zend_Uri_HttpTest'); return $suite; }
set_error_handler(array('CreoleBaseTest', 'errorHandler')); // if no DSN was supplied, then we need to prompt for it if ($argc <= 1) { print "\n"; print "You must provide connection information to a database in order to test\n"; print "driver classes. The database should be temporary or disposable. The \n"; print "unit tests will create and drop tables within the specified database.\n"; print "\nYou can also specify this on the commmandline:\n"; print "\t\$> php -f run-tests.php mysql://root@localhost/mytempdb\n"; print "\nPlease enter the DSN URL (e.g. sqlite://localhost/:memory:)\n"; print "DSN: "; $dsn = trim(fgets(STDIN)); } else { $dsn = $argv[1]; } $testSuite = new PHPUnit2_Framework_TestSuite($dsn); // ---------------------------------------------------------------------------- // TESTS ---------------------------------------------------------------------- // ---------------------------------------------------------------------------- $timer = new Benchmark_Timer(); $timer->start(); // (1) Add Generic (non-Driver) Tests // ---------------------------------- require_once 'creole/CreoleTest.php'; $testSuite->addTestSuite(new ReflectionClass('CreoleTest')); require_once 'creole/util/sql/SQLStatementExtractorTest.php'; $testSuite->addTestSuite(new ReflectionClass('SQLStatementExtractorTest')); // (2) Driver Tests // ---------------- include_once 'creole/drivers/DriverTestManager.php'; print "--------------------------------------\n";
public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('Zend Framework - Zend_Pdf_Element_String'); $suite->addTestSuite('Zend_Pdf_Element_String_BinaryTest'); return $suite; }
// ---------------------------------------------------------- $typesSuite = new PHPUnit2_Framework_TestSuite("Phing Types"); include_once 'phing/types/MapperTest.php'; $typesSuite->addTestSuite(new ReflectionClass('MapperTest')); include_once 'phing/filters/LineContainsTest.php'; $typesSuite->addTestSuite(new ReflectionClass('LineContainsTest')); include_once 'phing/types/CommandlineTest.php'; $typesSuite->addTestSuite(new ReflectionClass('CommandlineTest')); include_once 'phing/types/FileSetTest.php'; $typesSuite->addTestSuite(new ReflectionClass('FileSetTest')); // ---------------------------------------------------------- // tasks // ---------------------------------------------------------- $tasksSuite = new PHPUnit2_Framework_TestSuite("Phing Tasks"); include_once 'phing/tasks/TypedefTaskTest.php'; $tasksSuite->addTestSuite(new ReflectionClass('TypedefTaskTest')); // Conditions include_once 'phing/tasks/condition/ContainsConditionTest.php'; include_once 'phing/tasks/condition/EqualsConditionTest.php'; $tasksSuite->addTestSuite(new ReflectionClass('ContainsConditionTest')); $tasksSuite->addTestSuite(new ReflectionClass('EqualsConditionTest')); include_once 'phing/tasks/PropertyTaskTest.php'; $tasksSuite->addTestSuite(new ReflectionClass('PropertyTaskTest')); $suite = new PHPUnit2_Framework_TestSuite('Phing Tests'); $suite->addTest($coreSuite); $suite->addTest($typesSuite); $suite->addTest($tasksSuite); // Run it! PHPUnit2_TextUI_TestRunner::run($suite); // SHUTDOWN PHING Phing::shutdown();
/** * A test suite ended. * * @param PHPUnit2_Framework_TestSuite $suite * @access public * @since Method available since Release 2.2.0 */ public function endTestSuite(PHPUnit2_Framework_TestSuite $suite) { $this->log->info(sprintf('TestSuite "%s" ended.', $suite->getName())); }