Home
last modified time | relevance | path

Searched refs:this (Results 1 – 25 of 2162) sorted by relevance

12345678910>>...87

/PHP-5.5/scripts/dev/generate-phpt/src/testcase/
H A DgtTestCase.php63 $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 DgtErrorTestCaseMethod.php10 $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 DgtVariationTestCaseMethod.php14 $this->optionalSections = $opt;
25 $this->subject = $method;
36 $this->constructCommonHeaders();
38 $this->addVariationEcho();
40 $this->constructorArgInit();
43 $this->constructSubjectcalls();
49 $this->testCase[] = "--TEST--";
50this->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 DgtErrorTestCaseFunction.php10 $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 DgtVariationTestCaseFunction.php13 $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 DgtBasicTestCaseMethod.php9 $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 DgtVariationTestCase.php29 $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 DgtBasicTestCaseFunction.php11 $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.5/scripts/dev/generate-phpt/src/
H A DgtTestSubject.php37 $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 DgtMethod.php23 $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.5/ext/ereg/tests/
H A Dereg_replace_basic_001.phpt34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
38this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[th…
42this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[th…
46this 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 Deregi_replace_basic_001.phpt34 string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
38this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[th…
42this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[th…
46this 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.5/
H A Dserver-tests.php496 $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.5/ext/soap/interop/
H A Dclient_round2_interop.php70 $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.5/ext/phar/tests/files/
H A Dpear2coverage.phar.php37 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.5/scripts/dev/
H A Dgenerate-phpt.phar1096 $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.5/ext/spl/internal/
H A Dregexiterator.inc56 $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 Dsplfileobject.inc45 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 Dlimititerator.inc45 $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 Drecursiveiteratoriterator.inc65 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 Dcachingiterator.inc54 $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.5/scripts/dev/generate-phpt/src/setup/
H A DgtOptionalSections.php21 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.5/tests/lang/
H A D019.phpt17 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.5/ext/spl/examples/
H A Dcallbackfilteriterator.inc58 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 …]
/PHP-5.5/ext/standard/tests/file/
H A Dinclude_userstream_002.phpt20 $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 …]

Completed in 273 milliseconds

12345678910>>...87