summaryrefslogtreecommitdiff
path: root/tests/classes/array_access_013.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /tests/classes/array_access_013.phpt
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'tests/classes/array_access_013.phpt')
-rwxr-xr-xtests/classes/array_access_013.phpt58
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/classes/array_access_013.phpt b/tests/classes/array_access_013.phpt
deleted file mode 100755
index 206d9d5403..0000000000
--- a/tests/classes/array_access_013.phpt
+++ /dev/null
@@ -1,58 +0,0 @@
---TEST--
-ZE2 ArrayAccess and exceptions
---FILE--
-<?php
-
-class Test implements ArrayAccess
-{
- public function offsetExists($offset) { throw new Exception(__METHOD__); return false; }
- public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; }
- public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); }
- public function offsetUnset($offset) { throw new Exception(__METHOD__); }
-}
-
-$t = new Test;
-
-try
-{
- echo isset($t[0]);
-}
-catch(Exception $e)
-{
- echo "Caught in " . $e->getMessage() . "()\n";
-}
-
-try
-{
- echo $t[0];
-}
-catch(Exception $e)
-{
- echo "Caught in " . $e->getMessage() . "()\n";
-}
-
-try
-{
- $t[0] = 1;
-}
-catch(Exception $e)
-{
- echo "Caught in " . $e->getMessage() . "()\n";
-}
-
-try
-{
- unset($t[0]);
-}
-catch(Exception $e)
-{
- echo "Caught in " . $e->getMessage() . "()\n";
-}
-?>
-===DONE===
---EXPECT--
-Caught in Test::offsetExists()
-Caught in Test::offsetGet()
-Caught in Test::offsetSet()
-Caught in Test::offsetUnset()
-===DONE===