Annotation of embedaddon/php/ext/standard/tests/strings/show_source_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function show_source() by calling it with its expected arguments, more test for highlight_file()
        !             3: --CREDITS--
        !             4: Francesco Fullone ff@ideato.it
        !             5: #PHPTestFest Cesena Italia on 2009-06-20
        !             6: --FILE--
        !             7: <?php
        !             8: echo "*** Test by calling method or function with its expected arguments ***\n";
        !             9: $foo = 'bar';
        !            10: $baz = "something ".$foo."\n";
        !            11: 
        !            12: if ( $foo == 'bar' ) 
        !            13: {
        !            14:   $baz = 'baz';
        !            15: }
        !            16: 
        !            17:  /* some code here */
        !            18:    
        !            19: show_source(__FILE__);
        !            20: 
        !            21: ?>
        !            22: --EXPECTF--
        !            23: *** Test by calling method or function with its expected arguments ***
        !            24: <code><span style="color: #000000">
        !            25: <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"***&nbsp;Test&nbsp;by&nbsp;calling&nbsp;method&nbsp;or&nbsp;function&nbsp;with&nbsp;its&nbsp;expected&nbsp;arguments&nbsp;***\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$foo&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$baz&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"something&nbsp;"</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&nbsp;(&nbsp;</span><span style="color: #0000BB">$foo&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">'bar'&nbsp;</span><span style="color: #007700">)&nbsp;<br />{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$baz&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'baz'</span><span style="color: #007700">;<br />}<br /><br />&nbsp;</span><span style="color: #FF8000">/*&nbsp;some&nbsp;code&nbsp;here&nbsp;*/<br />&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;<br /></span>
        !            26: </span>
        !            27: </code>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>