summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug37816.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/bug37816.phpt')
-rwxr-xr-xext/reflection/tests/bug37816.phpt28
1 files changed, 0 insertions, 28 deletions
diff --git a/ext/reflection/tests/bug37816.phpt b/ext/reflection/tests/bug37816.phpt
deleted file mode 100755
index 18a49046dc..0000000000
--- a/ext/reflection/tests/bug37816.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-Bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute)
---FILE--
-<?php
-
-class TestClass
-{
- protected $p = 2;
-}
-
-$o = new TestClass;
-
-$r = new ReflectionProperty($o, 'p');
-
-try
-{
- $x = $r->getValue($o);
-}
-catch (Exception $e)
-{
- echo 'Caught: ' . $e->getMessage() . "\n";
-}
-
-?>
-===DONE===
---EXPECTF--
-Caught: Cannot access non-public member TestClass::p
-===DONE===