--TEST-- Test function gzfile() by substituting agument 1 with object values. --SKIPIF-- --FILE-- new classWithToString(), 'instance of classWithoutToString' => new classWithoutToString(), ); foreach ( $variation as $var ) { var_dump(gzfile( $var , $use_include_path ) ); } ?> --EXPECTF-- Error: 2 - gzfile(Class A object): failed to open stream: No such file or directory, %s(%d) bool(false) Error: 2 - gzfile() expects parameter 1 to be string, object given, %s(%d) NULL