[pLog-svn] r5268 - plog/branches/lifetype-1.2/class/test/tests/file

Jon Daley plogworld at jon.limedaley.com
Tue Apr 3 16:12:26 EDT 2007


I can replace your version:
   $basename = preg_replace( '/^.+[\\\\\\/]/', '', $fileName );
with:
$basename = preg_replace( "/^.+\//", '', $fileName );

and all of your tests still pass.

Can you put in a test that fails with the simpler version?



More information about the pLog-svn mailing list