/PHP-5.6/scripts/dev/generate-phpt/src/testcase/ |
H A D | gtTestCase.php | 63 $this->testHeader(); 66 $this->addSkipif(); 70 $this->addIni(); 73 $this->fileOpening(); 82 $this->fileClosing(); 85 $this->addDone(); 89 $this->addClean(); 92 $this->addExpectf(); 102 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 125 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); [all …]
|
H A D | gtErrorTestCaseMethod.php | 10 $this->optionalSections = $opt; 20 $this->subject = $method; 29 $this->constructCommonHeaders(); 31 $this->addErrorEcho(); 33 $this->constructorArgInit(); 36 $this->constructSubjectCalls(); 42 $this->testCase[] = "--TEST--"; 50 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); 51 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );"; 54 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); [all …]
|
H A D | gtVariationTestCaseMethod.php | 14 $this->optionalSections = $opt; 25 $this->subject = $method; 36 $this->constructCommonHeaders(); 38 $this->addVariationEcho(); 40 $this->constructorArgInit(); 43 $this->constructSubjectcalls(); 49 $this->testCase[] = "--TEST--"; 50 …this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getName… 54 $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase); 61 $this->testCase[] = " var_dump(\$class->".$this->subject->getName()."( ".$list." ) );"; [all …]
|
H A D | gtErrorTestCaseFunction.php | 10 $this->optionalSections = $opt; 19 $this->subject = $function; 28 $this->constructCommonHeaders(); 30 $this->addErrorEcho(); 32 $this->constructSubjectCalls(); 40 $this->testCase[] = "--TEST--"; 47 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); 48 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );"; 51 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); 52 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );"; [all …]
|
H A D | gtVariationTestCaseFunction.php | 13 $this->optionalSections = $opt; 23 $this->subject = $function; 35 $this->constructCommonHeaders(); 37 $this->addVariationEcho(); 39 $this->constructSubjectCalls(); 41 $this->constructCommonClosing(); 45 $this->testCase[] = "--TEST--"; 46 …$this->testCase[] = "Test function ".$this->subject->getName()."() by substituting argument ".$thi… 51 $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase); 59 $this->testCase[] = " var_dump(".$this->subject->getName()."( ".$list." ) );"; [all …]
|
H A D | gtBasicTestCaseMethod.php | 9 $this->optionalSections = $opt; 18 $this->subject = $method; 22 $this->constructCommonHeaders(); 24 $this->addBasicEcho(); 26 $this->constructorArgInit(); 29 $this->constructSubjectCalls(); 36 $this->testCase[] = "--TEST--"; 37 …$this->testCase[] = "Test class ".$this->subject->getClassName()." method ".$this->subject->getNa… 45 $this->testCase[] = "var_dump( \$class->".$this->subject->getName()."( ".$list." ) );"; 46 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); [all …]
|
H A D | gtVariationTestCase.php | 29 $statements = $this->subject->getInitialisationStatements(); 31 if($i != ( $this->argumentNumber -1) ) { 32 $this->testCase[] = $statements[$i]; 35 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 39 $this->testCase = gtCodeSnippet::append($this->variationData, $this->testCase); 40 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 44 $this->argInitVariation(); 45 $this->addVariationCode(); 46 $this->subjectCalls(); 50 …$this->testCase[] = "echo \"*** Test substituting argument ".$this->argumentNumber." with ".$this-… [all …]
|
H A D | gtBasicTestCaseFunction.php | 11 $this->optionalSections = $opt; 20 $this->subject = $function; 24 $this->constructCommonHeaders(); 26 $this->addBasicEcho(); 28 $this->constructSubjectCalls(); 30 $this->constructCommonClosing(); 41 $this->testCase[] = "--TEST--"; 42 …$this->testCase[] = "Test function ".$this->subject->getName()."() by calling it with its expected… 55 $this->testCase = gtCodeSnippet::appendBlankLines(1, $this->testCase ); 56 $this->testCase[] = "var_dump(".$this->subject->getName()."( ".$list." ) );"; [all …]
|
/PHP-5.6/scripts/dev/generate-phpt/src/ |
H A D | gtTestSubject.php | 37 $this->setExtraArgumentList(); 38 $this->setShortArgumentList(); 48 $this->extraArgumentList .= "\$".$this->mandatoryArgumentNames[$i].", "; 54 $this->extraArgumentList .= "\$".$this->optionalArgumentNames[$i].", "; 58 $this->extraArgumentList= $this->extraArgumentList. "\$extra_arg"; 80 $this->shortArgumentList .= "\$".$this->mandatoryArgumentNames[$i].", "; 82 $this->shortArgumentList = substr($this->shortArgumentList, 0, -2); 105 $this->allowedArgumentLists[0] .= "\$".$this->mandatoryArgumentNames[$i].", "; 111 …$this->allowedArgumentLists[] = $this->allowedArgumentLists[$i]."\$".$this->optionalArgumentNames[… 112 $this->allowedArgumentLists[$i] = substr ($this->allowedArgumentLists[$i], 0, -2); [all …]
|
H A D | gtMethod.php | 23 $this->className = $className; 24 $this->methodName = $methodName; 49 $methodClass = new reflectionMethod($this->className, $this->methodName); 69 return $this->constructorArgumentNames; 78 return $this->methodName; 88 return $this->className; 96 if(count ($this->constructorArgumentNames) > 0) { 99 $this->constructorArgumentList .= "\$".$this->constructorArgumentNames[$i].", "; 101 $this->constructorArgumentList = substr($this->constructorArgumentList, 0, -2); 112 return $this->constructorArgumentList; [all …]
|
/PHP-5.6/ext/ereg/tests/ |
H A D | ereg_replace_basic_001.phpt | 34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--" 38 …this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[th… 42 …this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[th… 46 …this is a replacement][this is a replacement][this is a replacement][this is a replacement][this i… 50 string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] … 54 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 58 string(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replaceme… 62 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 80 [this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a rep… 81 [this is a replacement]" [all …]
|
H A D | eregi_replace_basic_001.phpt | 34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--" 38 …this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[th… 42 …this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[th… 46 …this is a replacement][this is a replacement][this is a replacement][this is a replacement][this i… 50 string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] … 54 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 58 string(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replaceme… 62 string(74) "[this is a replacement] this contains some matches [this is a replacement]" 80 [this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a rep… 81 [this is a replacement]" [all …]
|
/PHP-5.6/sapi/phpdbg/tests/ |
H A D | run-tests.php | 98 $this->options['width'] = (integer) $this->options['width']; 106 $this->options['lwidth'] = ceil($this->options['width'] / 3); 107 $this->options['rwidth'] = ceil($this->options['width'] - $this->options['lwidth']) - 5; 197 @$this->totals[true] += $this->stats[$path][true]; 198 @$this->totals[false] += $this->stats[$path][false]; 458 $this->diff['wants'][$num] = &$this->match[$num]; 465 $this->diff['wants'][$num] = &$this->match[$num]; 472 $this->diff['wants'][$num] = &$this->match[$num]; 480 $this->diff['wants'][$num] = &$this->match[$num]; 507 dirname($this->file), basename($this->file)); [all …]
|
/PHP-5.6/ |
H A D | server-tests.php | 496 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd; 560 $this->exts_tested = count($this->exts_to_test); 656 $this->conf = array_merge($this->conf,$conf); 666 $this->conf[$this->xargs[$opt][0]] = $value; 679 $this->env = array_merge($this->env,$this->conf); 681 $this->writemsg($this->help()); 697 $this->conf[$name] = $this->env[$name]; 789 $this->writemsg("\n$this->ddash\n". 806 usort($this->test_files,array($this,"test_sort")); 871 $this->writemsg("TIME START " . date('Y-m-d H:i:s', $this->start_time) . "\n".$this->ddash."\n"); [all …]
|
/PHP-5.6/ext/soap/interop/ |
H A D | client_round2_interop.php | 70 $this->dbc = DB::connect($this->DSN, true); 74 $this->dbc = NULL; 275 "and class='$this->currentTest' and type='$this->paramType' ". 287 "'$this->paramType',$this->useWSDL,". 542 $this->getEndpoints($this->currentTest); 610 $soap_test->showTestResult($this->debug, $this->html); 615 if ($this->numservers && ++$i >= $this->numservers) break; 677 $methods = $this->getMethodList($this->currentTest); 679 $this->getResults($this->currentTest,$this->paramType,$this->useWSDL); 702 $this->totals['calls'] = count($methods) * $this->totals['servers']; [all …]
|
/PHP-5.6/ext/phar/tests/files/ |
H A D | pear2coverage.phar.php | 37 return $this->view->TOC($this->sqlite); 45 return $this->view->testTOC($this->sqlite); 58 return $this->view->TOC($this->sqlite); 88 $this->sqlite = $this->view->getDatabase(); 626 … $decorator->renderSummary($this, $this->retrievePaths(), $this->codepath, false, $coverage[1], 669 $this->coverage = $this->aggregator->retrieveCoverage($this->path); 727 $this->linelinks = $this->aggregator->retrieveLineLinks($this->path); 908 … $decorator->renderSummary($this, $this->retrievePaths(), $this->codepath, false, $coverage[1], 1580 $this->coverage = $this->aggregator->retrieveCoverageByTest($this->path, $this->testname); 1585 $info = $this->aggregator->coverageInfoByTest($this->path, $this->testname); [all …]
|
/PHP-5.6/scripts/dev/ |
H A D | generate-phpt.phar | 1096 $this->extraArgumentList= $this->extraArgumentList. "\$extra_arg"; 1120 $this->shortArgumentList = substr($this->shortArgumentList, 0, -2); 1149 …$this->allowedArgumentLists[] = $this->allowedArgumentLists[$i]."\$".$this->optionalArgumentNames[… 1154 …$this->allowedArgumentLists[count($this->allowedArgumentLists) -1 ] = substr($this->allowedArgumen… 1338 $this->argInit(); 1421 $this->addIni(); 1743 …$this->testCase[] = "Test function ".$this->subject->getName()."() by substituting argument ".$thi… 1748 $this->testCase = gtCodeSnippet::append('loopStart', $this->testCase); 1757 $this->testCase = gtCodeSnippet::append('loopClose', $this->testCase); 1988 $this->testCase = gtCodeSnippet::append($this->variationData, $this->testCase); [all …]
|
/PHP-5.6/ext/spl/internal/ |
H A D | regexiterator.inc | 56 $this->mode = $mode; 74 $subject = ($this->flags & self::USE_KEY) ? $this->key : $this->current; 75 switch($this->mode) 78 return preg_match($this->regex, $subject, $matches, $this->preg_flags); 82 return preg_match($this->regex, $subject, $this->current, $this->preg_flags) > 0; 86 return preg_match_all($this->regex, $subject, $this->current, $this->preg_flags) > 0; 90 preg_split($this->regex, $subject, $this->current, $this->preg_flags) > 1; 94 $result = preg_replace($this->regex, $this->replacement, $subject); 110 return $this->key; 124 return $this->mode; [all …]
|
H A D | splfileobject.inc | 45 if (!$this->fp) 65 $this->freeLine(); 66 $this->lnum++; 67 $buf = fgets($this->fp, $this->max_len); 80 $this->lnum++; 111 return array($this->delimiter, $this->enclosure); 160 $this->lnum++; 186 $this->lnum++; 324 $this->lnum++; 327 $this->line = fgets($this->fp, $this->max_len); [all …]
|
H A D | limititerator.inc | 45 $this->it = $it; 48 $this->pos = 0; 60 if ($position > $this->offset + $this->count && $this->count != -1) { 67 while($this->pos < $position && $this->it->valid()) { 68 $this->next(); 78 $this->pos = 0; 79 $this->seek($this->offset); 85 return ($this->count == -1 || $this->pos < $this->offset + $this->count) 104 $this->it->next(); 105 $this->pos++; [all …]
|
H A D | recursiveiteratoriterator.inc | 65 unset($this->ait[$this->count--]); 93 $it = $this->ait[$this->count]; 101 $it = $this->ait[$this->count]; 110 $it = $this->ait[$this->count]; 130 $this->ait[++$this->count] = $sub; 147 unset($this->ait[$this->count--]); 148 $it = $this->ait[$this->count]; 172 return $this->it; 187 return $this->ait[$this->count]->hasChildren(); 195 return $this->ait[$this->count]->getChildren(); [all …]
|
H A D | cachingiterator.inc | 54 $this->it = $it; 56 $this->next(); 64 $this->next(); 71 if ($this->valid = $this->it->valid()) { 72 $this->current = $this->it->current(); 73 $this->key = $this->it->key(); 76 $this->strValue = $this->current->__toString(); 78 $this->strValue = (string)$this->current; 86 $this->it->next(); 114 return $this->key; [all …]
|
/PHP-5.6/scripts/dev/generate-phpt/src/setup/ |
H A D | gtOptionalSections.php | 21 if(array_key_exists($option, $this->optSections )) { 22 $this->optSections[$option] = true; 42 return $this->optSections; 47 return $this->skipifKey; 51 return $this->skipifExt; 55 return $this->optSections['skipif']; 59 if($this->skipifKey != '') { 66 if($this->skipifExt != '') { 72 return $this->optSections['ini']; 76 return $this->optSections['clean']; [all …]
|
/PHP-5.6/tests/lang/ |
H A D | 019.phpt | 17 hey, this is a regular echo'd eval() 18 hey, this is a function inside an eval()! 19 hey, this is a regular echo'd eval() 21 hey, this is a regular echo'd eval() 23 hey, this is a regular echo'd eval() 25 hey, this is a regular echo'd eval() 27 hey, this is a regular echo'd eval() 29 hey, this is a regular echo'd eval() 31 hey, this is a regular echo'd eval() 33 hey, this is a regular echo'd eval() [all …]
|
/PHP-5.6/ext/spl/examples/ |
H A D | callbackfilteriterator.inc | 58 switch($this->mode) { 66 return (bool) call_user_func($this->callback, &$this->current); 68 return (bool) call_user_func($this->callback, $this->current); 72 return (bool) call_user_func($this->callback, &$this->key); 74 return (bool) call_user_func($this->callback, $this->key); 78 return (bool) call_user_func($this->callback, &$this->key, &$this->current); 80 return (bool) call_user_func($this->callback, $this->key, $this->current); 88 return $this->key; 100 return $this->mode; 106 $this->mode = $mode; [all …]
|