fileobject_setmaxlinelen_basic.phpt 251 B

123456789101112131415
  1. --TEST--
  2. SPL: SplFileObject::setMaxLineLen
  3. --CREDITS--
  4. H�vard Eide <nucleuz at gmail.com>
  5. #Testfest php.no
  6. --INI--
  7. include_path=.
  8. --FILE--
  9. <?php
  10. $s = new SplFileObject( __FILE__ );
  11. $s->setMaxLineLen( 3);
  12. echo $s->getCurrentLine();
  13. ?>
  14. --EXPECT--
  15. <?p