Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add test for bug #4229 (url_stat)

git-svn-id: http://svn.php.net/repository/pear/packages/Stream_Var/trunk@287140 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 232b39362d9b43491b3653514d5d4eb5cb87760c 1 parent 8e066f8
Christian Weiske authored August 12, 2009

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  tests/bug4229-url_stat.phpt
11  tests/bug4229-url_stat.phpt
... ...
@@ -0,0 +1,11 @@
  1
+--TEST--
  2
+Use file_exists() on a var stream
  3
+--FILE--
  4
+<?php
  5
+require_once 'Stream/Var.php';
  6
+stream_wrapper_register('var', 'Stream_Var');
  7
+$GLOBALS['somefile'] = 'blah blah blah';
  8
+var_dump(file_exists('var://GLOBALS/somefile'));
  9
+?>
  10
+--EXPECT--
  11
+bool(true)

0 notes on commit 232b393

Please sign in to comment.
Something went wrong with that request. Please try again.