--TEST--
Bug #36214 (__get method works properly only when conditional operator is used)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
class context {
--TEST--
Bug #42819 (namespaces in indexes of constant arrays)
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
namespace foo\foo;
Stack trace:
#0 %s(%d): foo\oops()
#1 {main}
- thrown in %sbug42819.php on line %d
\ No newline at end of file
+ thrown in %sbug42819.php on line %d
--TEST--
Bug #45805 (Crash on throwing exception from error handler)
---SKIPIF--
-<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class PHPUnit_Util_ErrorHandler
set_error_handler(
array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT
);
-
+
$o = new B;
$o->bar();
?>
--TEST--
Bug #50174 (Incorrectly matched docComment)
---SKIPIF--
-<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
--FILE--
<?php
--TEST--
Closure 042: Binding an instance to a non-scoped non-static closures gives it a dummy scope
---SKIPIF--
-<?php if(!extension_loaded("reflection")) print "skip no reflection"; ?>
--FILE--
<?php
var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
echo "Done.\n";
-
+?>
--EXPECTF--
object(stdClass)#%d (0) {
}
GC 024: GC and objects with non-standard handlers
--INI--
zend.enable_gc=1
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
$a = new ArrayObject();
--TEST--
035: Name ambiguity in compile-time constant reference (php name)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
namespace A;
--TEST--
036: Name ambiguity in compile-time constant reference (ns name)
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
namespace A;
--TEST--
054: namespace and interfaces
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
namespace test\ns1;
--TEST--
056: type-hint compatibility in namespaces
---SKIPIF--
-<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
namespace test\ns1;
--TEST--
Return type and Reflection::export()
---SKIPIF--
-<?php
-if (!extension_loaded('reflection')) print 'skip';
-?>
--FILE--
<?php
}
ReflectionClass::export("A");
+?>
--EXPECTF--
Class [ <user> class A ] {
@@ %sreflection001.php 3-7
}
}
}
-
--TEST--
unset() CV 10 (unset() of global variable in ArrayObject::offsetUnset($GLOBALS))
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
$a = new ArrayObject($GLOBALS);