<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=PHPUnitManual%3A19.3</id>
	<title>PHPUnitManual:19.3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://trans.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=PHPUnitManual%3A19.3"/>
	<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=PHPUnitManual:19.3&amp;action=history"/>
	<updated>2026-05-02T08:35:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://trans.onionmixer.net/wiki/index.php?title=PHPUnitManual:19.3&amp;diff=3453&amp;oldid=prev</id>
		<title>Onionmixer: PHPUnit 19.3 PHPUnit_Framework_TestListener 의 구현 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=PHPUnitManual:19.3&amp;diff=3453&amp;oldid=prev"/>
		<updated>2013-07-04T09:57:22Z</updated>

		<summary type="html">&lt;p&gt;PHPUnit 19.3 PHPUnit_Framework_TestListener 의 구현 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;19.3 PHPUnit_Framework_TestListener 의 구현&lt;br /&gt;
&lt;br /&gt;
예19.3 &amp;quot;simple test listener&amp;quot; 는, PHPUnit_Framework_TestListener 인터페이스 구현의 간단한 예입니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
예19.3: simple test listener&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class SimpleTestListener implements PHPUnit_Framework_TestListener&lt;br /&gt;
{&lt;br /&gt;
    public function addError(PHPUnit_Framework_Test $test, Exception $e, $time)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Error while running test &amp;#039;%s&amp;#039;.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Test &amp;#039;%s&amp;#039; failed.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Test &amp;#039;%s&amp;#039; is incomplete.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Test &amp;#039;%s&amp;#039; has been skipped.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function startTest(PHPUnit_Framework_Test $test)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Test &amp;#039;%s&amp;#039; started.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function endTest(PHPUnit_Framework_Test $test, $time)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;Test &amp;#039;%s&amp;#039; ended.\n&amp;quot;, $test-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function startTestSuite(PHPUnit_Framework_TestSuite $suite)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;TestSuite &amp;#039;%s&amp;#039; started.\n&amp;quot;, $suite-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    public function endTestSuite(PHPUnit_Framework_TestSuite $suite)&lt;br /&gt;
    {&lt;br /&gt;
        printf(&amp;quot;TestSuite &amp;#039;%s&amp;#039; ended.\n&amp;quot;, $suite-&amp;gt;getName());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Test Listeners&amp;quot; 에 자작 test listener 를 테스트 실행 전에 attach 하기 위한 PHPUnit 설정 방법이 설명되어 있습니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:PHPUnitManual]]&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>