<?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%3A14.4</id>
	<title>PHPUnitManual:14.4 - 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%3A14.4"/>
	<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=PHPUnitManual:14.4&amp;action=history"/>
	<updated>2026-05-02T04:38:16Z</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:14.4&amp;diff=3430&amp;oldid=prev</id>
		<title>Onionmixer: PHPUnit 14.4 Edge cases 페이지 추가</title>
		<link rel="alternate" type="text/html" href="https://trans.onionmixer.net/wiki/index.php?title=PHPUnitManual:14.4&amp;diff=3430&amp;oldid=prev"/>
		<updated>2013-07-04T09:15:29Z</updated>

		<summary type="html">&lt;p&gt;PHPUnit 14.4 Edge cases 페이지 추가&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;14.4 Edge cases&lt;br /&gt;
&lt;br /&gt;
대부분의 경우에, PHPUnit 은 &amp;quot;행 단위의 (line based)&amp;quot; code coverage 정보를 제공할 것입니다. 그렇지만, 이 정보 수집의 방법으로 인해 주의해야 할 Edge case 가 발생하는 경우가 있습니다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
예14.5&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;
  // Coverage 는 &amp;quot;문 단위&amp;quot; 가 아닌 &amp;quot;행 단위&amp;quot; 이기 때문에&lt;br /&gt;
  // 한 줄에 쓰여진 여러 문장은, 하나의 Coverage 상태를 가집니다.&lt;br /&gt;
if(false) this_function_call_shows_up_as_covered();&lt;br /&gt;
&lt;br /&gt;
// Code coverage 의 내부 동작에 의해, 다음 2행은 특별 취급됩니다.&lt;br /&gt;
// 다음 행은 &amp;quot;실행되지 않은 행&amp;quot; 으로 취급됩니다&lt;br /&gt;
if(false)&lt;br /&gt;
  // 다음 행은 &amp;quot;실행 가능한 행&amp;quot; 으로 취급됩니다&lt;br /&gt;
  // 구조적으로, 위 행의 if 문에 대한 coverage 정보가 여기에 표시되기 때문입니다&lt;br /&gt;
  will_also_show_up_as_coveraged();&lt;br /&gt;
&lt;br /&gt;
// 이런 문제를 피하기 위해서는, 다음과 같이 중괄호를 사용해야만 합니다&lt;br /&gt;
if(false) {&lt;br /&gt;
  this_call_will_never_show_up_as_covered();&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;
&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>