本文整理汇总了PHP中PHPUnit_Framework_TestSuite::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestSuite::__construct方法的具体用法?PHP PHPUnit_Framework_TestSuite::__construct怎么用?PHP PHPUnit_Framework_TestSuite::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestSuite
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestSuite::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Basic constructor for test suite
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->setName('php-commit-hooks - base tests');
$this->addTest(pchBaseRunnerTests::suite());
$this->addTest(pchBaseStringStreamTests::suite());
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->setName("Mail");
$this->addTest(ezcMailTest::suite());
$this->addTest(ezcMailComposerTest::suite());
$this->addTest(ezcMailPartTest::suite());
$this->addTest(ezcMailTransportOptionsTest::suite());
$this->addTest(ezcMailParserOptionsTest::suite());
$this->addTest(ezcMailTextTest::suite());
$this->addTest(ezcMailMultiPartTest::suite());
$this->addTest(ezcMailFileTest::suite());
$this->addTest(ezcMailVirtualFileTest::suite());
$this->addTest(ezcMailStreamFileTest::suite());
$this->addTest(ezcMailRfc822DigestTest::suite());
$this->addTest(ezcMailMultipartDigestTest::suite());
$this->addTest(ezcMailToolsTest::suite());
$this->addTest(ezcMailTransportMtaTest::suite());
$this->addTest(ezcMailTransportSmtpTest::suite());
$this->addTest(ezcMailTransportSmtpAuthTest::suite());
$this->addTest(ezcMailTransportPop3Test::suite());
$this->addTest(ezcMailTransportImapTest::suite());
$this->addTest(ezcMailTransportImapUidTest::suite());
$this->addTest(ezcMailTransportMboxTest::suite());
$this->addTest(ezcMailTransportFileTest::suite());
$this->addTest(ezcMailTransportStorageTest::suite());
$this->addTest(ezcMailTransportVariableTest::suite());
$this->addTest(ezcMailTutorialExamples::suite());
$this->addTest(ezcMailParserTest::suite());
$this->addTest(ezcMailPartWalkContextTest::suite());
$this->addTest(ezcMailHeadersHolderTest::suite());
$this->addTest(ezcMailMultipartMixedParserTest::suite());
$this->addTest(ezcMailRfc2231ImplementationTest::suite());
$this->addTest(ezcMailHeaderFolderTest::suite());
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->setName('Logger');
$this->addTest(Logger::suite());
$this->addTest(Console::suite());
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->setName("Document PDF tests");
$this->addTest(ezcDocumentPdfDriverHaruTests::suite());
$this->addTest(ezcDocumentPdfDriverTcpdfTests::suite());
$this->addTest(ezcDocumentPdfDriverSvgTests::suite());
$this->addTest(ezcDocumentPdfTransactionalDriverWrapperTests::suite());
$this->addTest(ezcDocumentPdfHyphenatorTests::suite());
$this->addTest(ezcDocumentPdfTokenizerTests::suite());
$this->addTest(ezcDocumentPdfLiteralTokenizerTests::suite());
$this->addTest(ezcDocumentPdfImageHandlerTests::suite());
$this->addTest(ezcDocumentPdfPageTests::suite());
$this->addTest(ezcDocumentPdfParagraphRendererTests::suite());
$this->addTest(ezcDocumentPdfTextBoxRendererTests::suite());
$this->addTest(ezcDocumentPdfLiterallayoutRendererTests::suite());
$this->addTest(ezcDocumentPdfVariableListRendererTests::suite());
$this->addTest(ezcDocumentPdfListRendererTests::suite());
$this->addTest(ezcDocumentPdfBlockquoteRendererTests::suite());
$this->addTest(ezcDocumentPdfRenderRtlTests::suite());
$this->addTest(ezcDocumentPdfRendererTextDecorationsTests::suite());
$this->addTest(ezcDocumentPdfMainRendererTests::suite());
$this->addTest(ezcDocumentPdfRendererFooterPartTests::suite());
$this->addTest(ezcDocumentPdfMediaObjectRendererTests::suite());
$this->addTest(ezcDocumentPdfTableColumnWidthCalculatorTests::suite());
$this->addTest(ezcDocumentPdfTableRendererTests::suite());
$this->addTest(ezcDocumentPdfTests::suite());
}
示例5: __construct
/**
* Basic constructor for test suite
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->setName('phpillow - PHP CouchDB wrapper');
$this->addTest(phpillowBackendTestSuite::suite());
$this->addTest(phpillowToolTestSuite::suite());
}
示例6: __construct
public function __construct($name = 'Kwf Framework')
{
parent::__construct($name);
$this->setBackupGlobals(false);
if (file_exists('tests')) {
$classes = $this->_addDirectory('./tests', false);
} else {
//we are inside kwf, only add classes ending with Test
$classes = $this->_addDirectory('.', true);
}
if (file_exists("/www/testtimes")) {
$app = Kwf_Registry::get('config')->application->id;
if (!file_exists("/www/testtimes/failure_{$app}")) {
mkdir("/www/testtimes/failure_{$app}");
}
$times = array();
foreach ($classes as $k => $c) {
$times[$k] = 0;
$p = "/www/testtimes/failure_{$app}/" . $c;
if (file_exists($p)) {
$times[$k] = file_get_contents($p);
}
}
arsort($times);
$sortedClasses = array();
foreach (array_keys($times) as $k) {
$sortedClasses[] = $classes[$k];
}
$classes = $sortedClasses;
}
foreach ($classes as $c) {
$this->addTestSuite($c);
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->setName("ymcHtmlForm");
$basedir = dirname(__FILE__);
$this->addTestFile($basedir . '/user_registration.php');
}
示例8: __construct
/**
* Constructor adds test groups defined on global level
* and adds additional logic for test names retrieval
*
* @see PHPUnit_Framework_TestSuite::__construct()
*/
public function __construct($theClass = '', $groups = array())
{
if (!$theClass instanceof ReflectionClass) {
$theClass = EcomDev_Utils_Reflection::getReflection($theClass);
}
// Check annotations for test case name
$annotations = PHPUnit_Util_Test::parseTestMethodAnnotations($theClass->getName());
if (isset($annotations['name'])) {
$this->suiteName = $annotations['name'];
}
// Creates all test instances
parent::__construct($theClass);
// Just sort-out them by our internal groups
foreach ($groups as $group) {
$this->groups[$group] = $this->tests();
}
foreach ($this->tests() as $test) {
if ($test instanceof PHPUnit_Framework_TestSuite) {
/* @todo
* Post an issue into PHPUnit bugtracker for
* impossibility for specifying group by parent test case
* Because it is a very dirty hack :(
**/
$testGroups = array();
foreach ($groups as $group) {
$testGroups[$group] = $test->tests();
}
EcomDev_Utils_Reflection::setRestrictedPropertyValue($test, 'groups', $testGroups);
}
}
// Remove un grouped tests group, if it exists
if (isset($this->groups[self::NO_GROUP_KEYWORD])) {
unset($this->groups[self::NO_GROUP_KEYWORD]);
}
}
示例9: __construct
public function __construct(array $tests)
{
parent::__construct();
foreach ($tests as $test) {
$this->addTestSuite($test);
}
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->setName("AuthenticationDatabaseTiein");
$this->addTest(ezcAuthenticationDatabaseTest::suite());
$this->addTest(ezcAuthenticationOpenidDbStoreTest::suite());
}
示例11: __construct
/**
* Basic constructor for test suite
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->setName('php-commit-hooks - commit message parser');
$this->addTest(pchCommitMessageParserTests::suite());
$this->addTest(pchCommitMessageCheckTests::suite());
}
示例12: __construct
public function __construct()
{
parent::__construct();
$paths = [];
// Autodiscover extension unit tests
$registry = ExtensionRegistry::getInstance();
foreach ($registry->getAllThings() as $info) {
$paths[] = dirname($info['path']) . '/tests/phpunit';
}
// Extensions can return a list of files or directories
Hooks::run('UnitTestsList', [&$paths]);
foreach (array_unique($paths) as $path) {
if (is_dir($path)) {
// If the path is a directory, search for test cases.
// @since 1.24
$suffixes = ['Test.php'];
$fileIterator = new File_Iterator_Facade();
$matchingFiles = $fileIterator->getFilesAsArray($path, $suffixes);
$this->addTestFiles($matchingFiles);
} elseif (file_exists($path)) {
// Add a single test case or suite class
$this->addTestFile($path);
}
}
if (!$paths) {
$this->addTest(new DummyExtensionsTest('testNothing'));
}
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->setName("Document");
$this->addTest(ezcDocumentDocumentTests::suite());
$this->addTest(ezcDocumentParserTests::suite());
$this->addTest(ezcDocumentConverterTests::suite());
$this->addTest(ezcDocumentOptionsXmlBaseTests::suite());
$this->addTest(ezcDocumentXmlBaseTests::suite());
$this->addTest(ezcDocumentDocbookTests::suite());
$this->addTest(ezcDocumentRstTokenizerTests::suite());
$this->addTest(ezcDocumentRstParserTests::suite());
$this->addTest(ezcDocumentRstDocbookVisitorTests::suite());
$this->addTest(ezcDocumentRstXhtmlVisitorTests::suite());
$this->addTest(ezcDocumentRstXhtmlBodyVisitorTests::suite());
$this->addTest(ezcDocumentRstValidationTests::suite());
$this->addTest(ezcDocumentWikiCreoleTokenizerTests::suite());
$this->addTest(ezcDocumentWikiDokuwikiTokenizerTests::suite());
$this->addTest(ezcDocumentWikiConfluenceTokenizerTests::suite());
$this->addTest(ezcDocumentWikiParserTests::suite());
$this->addTest(ezcDocumentWikiDocbookVisitorTests::suite());
$this->addTest(ezcDocumentWikiTests::suite());
$this->addTest(ezcDocumentXhtmlDocbookTests::suite());
$this->addTest(ezcDocumentXhtmlValidationTests::suite());
$this->addTest(ezcDocumentEzXmlTests::suite());
$this->addTest(ezcDocumentPdfCssParserTests::suite());
$this->addTest(ezcDocumentPdfHyphenatorTests::suite());
$this->addTest(ezcDocumentPdfLocationIdTests::suite());
$this->addTest(ezcDocumentPdfMatchLocationIdTests::suite());
$this->addTest(ezcDocumentConverterDocbookToHtmlTests::suite());
$this->addTest(ezcDocumentConverterDocbookToHtmlXsltTests::suite());
$this->addTest(ezcDocumentConverterDocbookToRstTests::suite());
$this->addTest(ezcDocumentConverterDocbookToWikiTests::suite());
$this->addTest(ezcDocumentConverterDocbookToEzXmlTests::suite());
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->setName('MvcTools');
$this->addTest(ezcMvcToolsRegexpRouteTest::suite());
$this->addTest(ezcMvcToolsRailsRouteTest::suite());
$this->addTest(ezcMvcToolsCatchAllRouteTest::suite());
$this->addTest(ezcMvcToolsRouterTest::suite());
$this->addTest(ezcMvcToolsControllerTest::suite());
$this->addTest(ezcMvcToolsViewTest::suite());
$this->addTest(ezcMvcToolsPhpViewTest::suite());
$this->addTest(ezcMvcToolsJsonViewTest::suite());
$this->addTest(ezcMvcToolsHttpRequestParserTest::suite());
$this->addTest(ezcMvcToolsHttpResponseWriterTest::suite());
$this->addTest(ezcMvcToolsGzipResponseFilterTest::suite());
$this->addTest(ezcMvcToolsGzDeflateResponseFilterTest::suite());
$this->addTest(ezcMvcToolsRecodeResponseFilterTest::suite());
$this->addTest(ezcMvcToolsConfigurableDispatcherTest::suite());
$this->addTest(ezcMvcFilterDefinitionTest::suite());
$this->addTest(ezcMvcInternalRedirectTest::suite());
$this->addTest(ezcMvcRequestAcceptTest::suite());
$this->addTest(ezcMvcRequestAuthenticationTest::suite());
$this->addTest(ezcMvcRequestFileTest::suite());
$this->addTest(ezcMvcRequestTest::suite());
$this->addTest(ezcMvcHttpRawRequestTest::suite());
$this->addTest(ezcMvcRequestUserAgentTest::suite());
$this->addTest(ezcMvcResponseTest::suite());
$this->addTest(ezcMvcResultCacheTest::suite());
$this->addTest(ezcMvcResultContentTest::suite());
$this->addTest(ezcMvcResultCookieTest::suite());
$this->addTest(ezcMvcResultTest::suite());
$this->addTest(ezcMvcRoutingInformationTest::suite());
$this->addTest(ezcMvcExternalRedirectTest::suite());
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->setName("PersistentObject");
$this->addTest(ezcPersistentCodeManagerTest::suite());
$this->addTest(ezcPersistentCacheManagerTest::suite());
$this->addTest(ezcPersistentMultiManagerTest::suite());
$this->addTest(ezcPersistentSessionDeleteTest::suite());
$this->addTest(ezcPersistentSessionFindTest::suite());
$this->addTest(ezcPersistentSessionLoadTest::suite());
$this->addTest(ezcPersistentSessionMiscTest::suite());
$this->addTest(ezcPersistentSessionSaveTest::suite());
$this->addTest(ezcPersistentFindIteratorTest::suite());
$this->addTest(ezcPersistentManualGeneratorTest::suite());
$this->addTest(ezcPersistentNativeGeneratorTest::suite());
$this->addTest(ezcPersistentSessionInstanceTest::suite());
$this->addTest(ezcPersistentOneToManyRelationTest::suite());
$this->addTest(ezcPersistentOneToOneRelationTest::suite());
$this->addTest(ezcPersistentManyToOneRelationTest::suite());
$this->addTest(ezcPersistentManyToManyRelationTest::suite());
$this->addTest(ezcPersistentKeywordTest::suite());
$this->addTest(ezcPersistentStringIdentifierTest::suite());
$this->addTest(ezcPersistentObjectPropertyTest::suite());
$this->addTest(ezcPersistentObjectIdPropertyTest::suite());
$this->addTest(ezcPersistentObjectDefinitionTest::suite());
$this->addTest(ezcPersistentObjectRelationsTest::suite());
$this->addTest(ezcPersistentObjectPropertiesTest::suite());
$this->addTest(ezcPersistentObjectColumnsTest::suite());
$this->addTest(ezcPersistentPropertyDateTimeConverterTest::suite());
$this->addTest(ezcPersistentDatabaseTypeTest::suite());
$this->addTest(ezcPersistentObjectTest::suite());
$this->addTest(ezcPersistentObjectInstanceDelayedInitTest::suite());
}