003+ <span style="color: #0000CC"><?php<br /></span><span style="color: #006600">echo </span><span style="color: #CC0000">"*** Test by calling method or function with its expected arguments and output to variable ***\n"</span><span style="color: #006600">;<br /></span><span style="color: #0000CC">$foo </span><span style="color: #006600">= </span><span style="color: #CC0000">'bar'</span><span style="color: #006600">;<br /></span><span style="color: #0000CC">$baz </span><span style="color: #006600">= </span><span style="color: #CC0000">"something "</span><span style="color: #006600">.</span><span style="color: #0000CC">$foo</span><span style="color: #006600">.</span><span style="color: #CC0000">"\n"</span><span style="color: #006600">;<br /><br />if ( </span><span style="color: #0000CC">$foo </span><span style="color: #006600">== </span><span style="color: #CC0000">'bar' </span><span style="color: #006600">) <br />{<br /> </span><span style="color: #0000CC">$baz </span><span style="color: #006600">= </span><span style="color: #CC0000">"baz\n"</span><span style="color: #006600">;<br />}<br /><br /> </span><span style="color: #FF9900">/* some code here */ <br /></span><span style="color: #0000CC">$source </span><span style="color: #006600">= </span><span style="color: #0000CC">show_source</span><span style="color: #006600">(</span><span style="color: #0000CC">__FILE__</span><span style="color: #006600">, </span><span style="color: #0000CC">true</span><span style="color: #006600">);<br /><br /></span><span style="color: #0000CC">var_dump</span><span style="color: #006600">(</span><span style="color: #0000CC">$source</span><span style="color: #006600">);<br /></span><span style="color: #0000CC">?><br /></span>
003- <span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"*** Test by calling method or function with its expected arguments and output to variable ***\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$foo </span><span style="color: #007700">= </span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">"something "</span><span style="color: #007700">.</span><span style="color: #0000BB">$foo</span><span style="color: #007700">.</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br />if ( </span><span style="color: #0000BB">$foo </span><span style="color: #007700">== </span><span style="color: #DD0000">'bar' </span><span style="color: #007700">) <br />{<br /> </span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">"baz\n"</span><span style="color: #007700">;<br />}<br /><br /> </span><span style="color: #FF8000">/* some code here */ <br /></span><span style="color: #0000BB">$source </span><span style="color: #007700">= </span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">, </span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$source</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?><br /></span>