public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Zend'); /** * Performe Zend_Serializer_Adapter tests */ $suite->addTest(Zend_Serializer_Adapter_AllTests::suite()); /** * Performe Zend_Serializer tests */ $suite->addTestSuite('Zend_Serializer_SerializerTest'); return $suite; }
if (!defined('TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED') || !TESTS_ZEND_SERIALIZER_ADAPTER_WDDX_ENABLED) { $skippedTest = new Zend_Serializer_Adapter_WddxSkipTest(); $skippedTest->message = 'this Adapter is not enabled in TestConfiguration.php'; $suite->addTest($skippedTest); } elseif (!extension_loaded('wddx')) { $skippedTest = new Zend_Serializer_Adapter_WddxSkipTest(); $skippedTest->message = 'extension "wddx" is not loaded'; $suite->addTest($skippedTest); } else { $suite->addTestSuite('Zend_Serializer_Adapter_WddxTest'); } if (!defined('TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED') || !TESTS_ZEND_SERIALIZER_ADAPTER_IGBINARY_ENABLED) { $skippedTest = new Zend_Serializer_Adapter_IgbinarySkipTest(); $skippedTest->message = 'this Adapter is not enabled in TestConfiguration.php'; $suite->addTest($skippedTest); } elseif (!extension_loaded('igbinary')) { $skippedTest = new Zend_Serializer_Adapter_IgbinarySkipTest(); $skippedTest->message = 'extension "igbinary" is not loaded'; $suite->addTest($skippedTest); } else { $suite->addTestSuite('Zend_Serializer_Adapter_IgbinaryTest'); } $suite->addTestSuite('Zend_Serializer_Adapter_PythonPickleSerializeProtocol0Test'); $suite->addTestSuite('Zend_Serializer_Adapter_PythonPickleSerializeProtocol1Test'); $suite->addTestSuite('Zend_Serializer_Adapter_PythonPickleUnserializeTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Zend_Serializer_Adapter_AllTests::main') { Zend_Serializer_Adapter_AllTests::main(); }