Annotation of embedaddon/php/ext/spl/tests/bug45216.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: SplFileObject::fgetss (bug 45216)
                      3: --CREDITS--
                      4: Perrick Penet <perrick@noparking.net>
                      5: #testfest phpcampparis 2008-06-07
                      6: --FILE--
                      7: <?php 
                      8: $file = dirname(__FILE__) . '/foo.html';
                      9: file_put_contents($file, 'text 0<div class="tested">text 1</div>');
                     10: $handle = fopen($file, 'r');
                     11: 
                     12: $object = new SplFileObject($file);
                     13: var_dump($object->fgetss());
                     14: var_dump(fgetss($handle));
                     15: ?>
                     16: --CLEAN--
                     17: <?php
                     18: unlink(dirname(__FILE__) . '/foo.html');
                     19: ?>
                     20: --EXPECTF--
                     21: string(12) "text 0text 1"
                     22: string(12) "text 0text 1"

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