Skip to content

Commit a85cfee

Browse files
committed
Updated API for commit bce872b40cccbe8b324ce5497a3e3619581e5644
1 parent 03241d7 commit a85cfee

3 files changed

Lines changed: 169 additions & 8 deletions

File tree

docs/classes/CodeIgniter-Test-Filters-CITestStreamFilter.html

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,20 @@ <h4 id="toc-methods">
363363
<dd>This method is called whenever data is read from or written to the
364364
attached stream (such as with fread() or fwrite()).</dd>
365365

366+
<dt class="phpdocumentor-table-of-contents__entry -method -public">
367+
<a class="" href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasErrorFilter">hasErrorFilter()</a>
368+
<span>
369+
&nbsp;: bool </span>
370+
</dt>
371+
<dd>Whether an error filter is currently attached to STDERR.</dd>
372+
373+
<dt class="phpdocumentor-table-of-contents__entry -method -public">
374+
<a class="" href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasOutputFilter">hasOutputFilter()</a>
375+
<span>
376+
&nbsp;: bool </span>
377+
</dt>
378+
<dd>Whether an output filter is currently attached to STDOUT.</dd>
379+
366380
<dt class="phpdocumentor-table-of-contents__entry -method -public">
367381
<a class="" href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_registration">registration()</a>
368382
<span>
@@ -710,6 +724,84 @@ <h5 class="phpdocumentor-return-value__heading">Return values</h5>
710724
<span class="phpdocumentor-signature__response_type">int</span>
711725
</section>
712726

727+
</article>
728+
<article
729+
class="phpdocumentor-element
730+
-method
731+
-public
732+
-static "
733+
>
734+
<h4 class="phpdocumentor-element__name" id="method_hasErrorFilter">
735+
hasErrorFilter()
736+
<a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasErrorFilter" class="headerlink"><i class="fas fa-link"></i></a>
737+
738+
</h4>
739+
<aside class="phpdocumentor-element-found-in">
740+
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Filters/CITestStreamFilter.php"><a href="files/system-test-filters-citeststreamfilter.html"><abbr title="system/Test/Filters/CITestStreamFilter.php">CITestStreamFilter.php</abbr></a></abbr>
741+
:
742+
<span class="phpdocumentor-element-found-in__line">106</span>
743+
744+
</aside>
745+
746+
<p class="phpdocumentor-summary">Whether an error filter is currently attached to STDERR.</p>
747+
748+
<code class="phpdocumentor-code phpdocumentor-signature ">
749+
<span class="phpdocumentor-signature__visibility">public</span>
750+
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">hasErrorFilter</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
751+
752+
<div class="phpdocumentor-label-line">
753+
</div>
754+
755+
756+
757+
758+
759+
760+
761+
<section>
762+
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
763+
<span class="phpdocumentor-signature__response_type">bool</span>
764+
</section>
765+
766+
</article>
767+
<article
768+
class="phpdocumentor-element
769+
-method
770+
-public
771+
-static "
772+
>
773+
<h4 class="phpdocumentor-element__name" id="method_hasOutputFilter">
774+
hasOutputFilter()
775+
<a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasOutputFilter" class="headerlink"><i class="fas fa-link"></i></a>
776+
777+
</h4>
778+
<aside class="phpdocumentor-element-found-in">
779+
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Filters/CITestStreamFilter.php"><a href="files/system-test-filters-citeststreamfilter.html"><abbr title="system/Test/Filters/CITestStreamFilter.php">CITestStreamFilter.php</abbr></a></abbr>
780+
:
781+
<span class="phpdocumentor-element-found-in__line">98</span>
782+
783+
</aside>
784+
785+
<p class="phpdocumentor-summary">Whether an output filter is currently attached to STDOUT.</p>
786+
787+
<code class="phpdocumentor-code phpdocumentor-signature ">
788+
<span class="phpdocumentor-signature__visibility">public</span>
789+
<span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">hasOutputFilter</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
790+
791+
<div class="phpdocumentor-label-line">
792+
</div>
793+
794+
795+
796+
797+
798+
799+
800+
<section>
801+
<h5 class="phpdocumentor-return-value__heading">Return values</h5>
802+
<span class="phpdocumentor-signature__response_type">bool</span>
803+
</section>
804+
713805
</article>
714806
<article
715807
class="phpdocumentor-element
@@ -827,7 +919,7 @@ <h4 class="phpdocumentor-element__name" id="method_removeFilter">
827919
<aside class="phpdocumentor-element-found-in">
828920
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Filters/CITestStreamFilter.php"><a href="files/system-test-filters-citeststreamfilter.html"><abbr title="system/Test/Filters/CITestStreamFilter.php">CITestStreamFilter.php</abbr></a></abbr>
829921
:
830-
<span class="phpdocumentor-element-found-in__line">100</span>
922+
<span class="phpdocumentor-element-found-in__line">116</span>
831923

832924
</aside>
833925

@@ -907,6 +999,8 @@ <h5 class="phpdocumentor-tag-list__heading" id="method_removeFilter_tags">
907999
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_addErrorFilter">addErrorFilter()</a></li>
9081000
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_addOutputFilter">addOutputFilter()</a></li>
9091001
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_filter">filter()</a></li>
1002+
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasErrorFilter">hasErrorFilter()</a></li>
1003+
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasOutputFilter">hasOutputFilter()</a></li>
9101004
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_registration">registration()</a></li>
9111005
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_removeErrorFilter">removeErrorFilter()</a></li>
9121006
<li class=""><a href="classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_removeOutputFilter">removeOutputFilter()</a></li>

docs/classes/CodeIgniter-Test-Mock-MockInputOutput.html

Lines changed: 59 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,16 @@ <h4 id="toc-properties">
325325
</dt>
326326
<dd>Output lines.</dd>
327327

328+
<dt class="phpdocumentor-table-of-contents__entry -property -private">
329+
<a class="" href="classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_priorFilterState">$priorFilterState</a>
330+
<span>
331+
&nbsp;: array{output: bool, error: bool, buffer: string}|null </span>
332+
</dt>
333+
<dd>Snapshot of the shared CITestStreamFilter state captured before this
334+
object attaches its own filters, restored once it is done. Lets a test
335+
combine MockInputOutput with an enclosing StreamFilterTrait without the
336+
latter&#039;s filters being torn down.</dd>
337+
328338
</dl>
329339

330340
<h4 id="toc-methods">
@@ -476,6 +486,47 @@ <h4 class="phpdocumentor-element__name" id="property_outputs">
476486

477487

478488

489+
</article>
490+
<article
491+
class="
492+
phpdocumentor-element
493+
-property
494+
-private
495+
"
496+
>
497+
<h4 class="phpdocumentor-element__name" id="property_priorFilterState">
498+
$priorFilterState
499+
<a href="classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_priorFilterState" class="headerlink"><i class="fas fa-link"></i></a>
500+
501+
<span class="phpdocumentor-element__modifiers">
502+
</span>
503+
</h4>
504+
<aside class="phpdocumentor-element-found-in">
505+
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
506+
:
507+
<span class="phpdocumentor-element-found-in__line">46</span>
508+
509+
</aside>
510+
511+
<p class="phpdocumentor-summary">Snapshot of the shared CITestStreamFilter state captured before this
512+
object attaches its own filters, restored once it is done. Lets a test
513+
combine MockInputOutput with an enclosing StreamFilterTrait without the
514+
latter&#039;s filters being torn down.</p>
515+
516+
517+
<code class="phpdocumentor-code phpdocumentor-signature ">
518+
<span class="phpdocumentor-signature__visibility">private</span>
519+
<span class="phpdocumentor-signature__type">array{output: bool, error: bool, buffer: string}|null</span>
520+
<span class="phpdocumentor-signature__name">$priorFilterState</span>
521+
= <span class="phpdocumentor-signature__default-value">null</span></code>
522+
523+
524+
525+
526+
527+
528+
529+
479530
</article>
480531
</section>
481532

@@ -533,7 +584,7 @@ <h4 class="phpdocumentor-element__name" id="method_fwrite">
533584
<aside class="phpdocumentor-element-found-in">
534585
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
535586
:
536-
<span class="phpdocumentor-element-found-in__line">131</span>
587+
<span class="phpdocumentor-element-found-in__line">163</span>
537588

538589
</aside>
539590

@@ -590,7 +641,7 @@ <h4 class="phpdocumentor-element__name" id="method_getOutput">
590641
<aside class="phpdocumentor-element-found-in">
591642
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
592643
:
593-
<span class="phpdocumentor-element-found-in__line">55</span>
644+
<span class="phpdocumentor-element-found-in__line">65</span>
594645

595646
</aside>
596647

@@ -643,7 +694,7 @@ <h4 class="phpdocumentor-element__name" id="method_getOutputs">
643694
<aside class="phpdocumentor-element-found-in">
644695
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
645696
:
646-
<span class="phpdocumentor-element-found-in__line">84</span>
697+
<span class="phpdocumentor-element-found-in__line">94</span>
647698

648699
</aside>
649700

@@ -682,7 +733,7 @@ <h4 class="phpdocumentor-element__name" id="method_input">
682733
<aside class="phpdocumentor-element-found-in">
683734
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
684735
:
685-
<span class="phpdocumentor-element-found-in__line">102</span>
736+
<span class="phpdocumentor-element-found-in__line">134</span>
686737

687738
</aside>
688739

@@ -736,7 +787,7 @@ <h4 class="phpdocumentor-element__name" id="method_setInputs">
736787
<aside class="phpdocumentor-element-found-in">
737788
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
738789
:
739-
<span class="phpdocumentor-element-found-in__line">43</span>
790+
<span class="phpdocumentor-element-found-in__line">53</span>
740791

741792
</aside>
742793

@@ -781,7 +832,7 @@ <h4 class="phpdocumentor-element__name" id="method_addStreamFilters">
781832
<aside class="phpdocumentor-element-found-in">
782833
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
783834
:
784-
<span class="phpdocumentor-element-found-in__line">89</span>
835+
<span class="phpdocumentor-element-found-in__line">99</span>
785836

786837
</aside>
787838

@@ -815,7 +866,7 @@ <h4 class="phpdocumentor-element__name" id="method_removeStreamFilters">
815866
<aside class="phpdocumentor-element-found-in">
816867
<abbr class="phpdocumentor-element-found-in__file" title="system/Test/Mock/MockInputOutput.php"><a href="files/system-test-mock-mockinputoutput.html"><abbr title="system/Test/Mock/MockInputOutput.php">MockInputOutput.php</abbr></a></abbr>
817868
:
818-
<span class="phpdocumentor-element-found-in__line">96</span>
869+
<span class="phpdocumentor-element-found-in__line">112</span>
819870

820871
</aside>
821872

@@ -859,6 +910,7 @@ <h4 class="phpdocumentor-element__name" id="method_removeStreamFilters">
859910
<ul class="phpdocumentor-list -clean">
860911
<li class=""><a href="classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_inputs">$inputs</a></li>
861912
<li class=""><a href="classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_outputs">$outputs</a></li>
913+
<li class=""><a href="classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_priorFilterState">$priorFilterState</a></li>
862914
</ul>
863915
</li>
864916

docs/js/searchIndex.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25150,6 +25150,16 @@ Search.appendIndex(
2515025150
"name": "removeOutputFilter",
2515125151
"summary": "",
2515225152
"url": "classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_removeOutputFilter"
25153+
}, {
25154+
"fqsen": "\\CodeIgniter\\Test\\Filters\\CITestStreamFilter\u003A\u003AhasOutputFilter\u0028\u0029",
25155+
"name": "hasOutputFilter",
25156+
"summary": "Whether\u0020an\u0020output\u0020filter\u0020is\u0020currently\u0020attached\u0020to\u0020STDOUT.",
25157+
"url": "classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasOutputFilter"
25158+
}, {
25159+
"fqsen": "\\CodeIgniter\\Test\\Filters\\CITestStreamFilter\u003A\u003AhasErrorFilter\u0028\u0029",
25160+
"name": "hasErrorFilter",
25161+
"summary": "Whether\u0020an\u0020error\u0020filter\u0020is\u0020currently\u0020attached\u0020to\u0020STDERR.",
25162+
"url": "classes/CodeIgniter-Test-Filters-CITestStreamFilter.html#method_hasErrorFilter"
2515325163
}, {
2515425164
"fqsen": "\\CodeIgniter\\Test\\Filters\\CITestStreamFilter\u003A\u003AremoveFilter\u0028\u0029",
2515525165
"name": "removeFilter",
@@ -25795,6 +25805,11 @@ Search.appendIndex(
2579525805
"name": "outputs",
2579625806
"summary": "Output\u0020lines.",
2579725807
"url": "classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_outputs"
25808+
}, {
25809+
"fqsen": "\\CodeIgniter\\Test\\Mock\\MockInputOutput\u003A\u003A\u0024priorFilterState",
25810+
"name": "priorFilterState",
25811+
"summary": "Snapshot\u0020of\u0020the\u0020shared\u0020CITestStreamFilter\u0020state\u0020captured\u0020before\u0020this\nobject\u0020attaches\u0020its\u0020own\u0020filters,\u0020restored\u0020once\u0020it\u0020is\u0020done.\u0020Lets\u0020a\u0020test\ncombine\u0020MockInputOutput\u0020with\u0020an\u0020enclosing\u0020StreamFilterTrait\u0020without\u0020the\nlatter\u0027s\u0020filters\u0020being\u0020torn\u0020down.",
25812+
"url": "classes/CodeIgniter-Test-Mock-MockInputOutput.html#property_priorFilterState"
2579825813
}, {
2579925814
"fqsen": "\\CodeIgniter\\Test\\Mock\\MockLanguage",
2580025815
"name": "MockLanguage",

0 commit comments

Comments
 (0)