/PHP-7.1/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 | 28 $statements = $this->subject->getInitialisationStatements(); 30 if($i != ( $this->argumentNumber -1) ) { 31 $this->testCase[] = $statements[$i]; 34 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 38 $this->testCase = gtCodeSnippet::append($this->variationData, $this->testCase); 39 $this->testCase = gtCodeSnippet::appendBlankLines(2, $this->testCase ); 43 $this->argInitVariation(); 44 $this->addVariationCode(); 45 $this->subjectCalls(); 49 …$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-7.1/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-7.1/ |
H A D | server-tests.php | 486 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd; 550 $this->exts_tested = count($this->exts_to_test); 646 $this->conf = array_merge($this->conf,$conf); 656 $this->conf[$this->xargs[$opt][0]] = $value; 669 $this->env = array_merge($this->env,$this->conf); 671 $this->writemsg($this->help()); 687 $this->conf[$name] = $this->env[$name]; 776 $this->writemsg("\n$this->ddash\n". 793 usort($this->test_files,array($this,"test_sort")); 858 $this->writemsg("TIME START " . date('Y-m-d H:i:s', $this->start_time) . "\n".$this->ddash."\n"); [all …]
|
/PHP-7.1/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-7.1/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-7.1/sapi/fpm/tests/ |
H A D | response.inc | 58 $this->data = $data; 79 $this->error( 84 $this->error( 90 return $this; 107 if ($this->checkIfValid() && $this->checkDefaultHeaders($contentType)) { 163 $this->error("The response is invalid: $this->rawData"); 248 return $this->valid; 256 $this->rawData = $this->data['out_response']; 257 $this->valid = ( 261 if ($this->valid) { [all …]
|
/PHP-7.1/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-7.1/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) 66 $this->lnum++; 67 $buf = fgets($this->fp, $this->max_len); 80 $this->lnum++; 91 return fgetcsv($this->fp, $this->max_len, $delimiter, $enclosure); 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-7.1/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-7.1/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-7.1/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 …]
|
H A D | dualiterator.inc | 43 $this->lhs = $lhs; 52 return $this->lhs; 59 return $this->rhs; 88 return $this->lhs->valid() && $this->rhs->valid(); 99 return array($this->lhs->current(), $this->rhs->current()); 139 ? $this->lhs->current() === $this->rhs->current() 140 && $this->lhs->key() === $this->rhs->key() 141 : $this->lhs->valid() == $this->rhs->valid(); 150 ? $this->lhs->current() == $this->rhs->current() 151 && $this->lhs->key() == $this->rhs->key() [all …]
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | include_userstream_002.phpt | 20 $this->pos = strlen($this->data); 22 $this->po = 0; 29 if (!empty($this->stream)) { 32 $ret = substr($this->data, $this->pos, $count); 33 $this->pos += strlen($ret); 39 if (!empty($this->stream)) { 42 return $this->pos; 50 return $this->pos >= strlen($this->data); 61 $this->pos = $offset; 69 $this->pos += $offset; [all …]
|