diff --git a/ext/reflection/tests/ReflectionZendExtension.phpt b/ext/reflection/tests/ReflectionZendExtension.phpt new file mode 100644 index 00000000000..b4cd96e97b9 --- /dev/null +++ b/ext/reflection/tests/ReflectionZendExtension.phpt @@ -0,0 +1,23 @@ +--TEST-- +Test ReflectionZendExtension class +--CREDITS-- +Gabriel Caruso (carusogabriel34@gmail.com) +--SKIPIF-- + +--FILE-- +getAuthor()); +var_dump($reflection->getCopyright()); +var_dump($reflection->getName()); +var_dump($reflection->getURL()); +var_dump($reflection->getVersion() === PHP_VERSION); +var_dump(gettype($reflection->export('Zend OPcache', true)) === 'string'); +?> +--EXPECTF-- +string(17) "Zend Technologies" +string(23) "Copyright (c) 1999-20%d" +string(12) "Zend OPcache" +string(20) "http://www.zend.com/" +bool(true) +bool(true) diff --git a/ext/reflection/tests/ReflectionZendExtension_error.phpt b/ext/reflection/tests/ReflectionZendExtension_error.phpt new file mode 100644 index 00000000000..efce02640b9 --- /dev/null +++ b/ext/reflection/tests/ReflectionZendExtension_error.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test ReflectionZendExtension class erros +--CREDITS-- +Gabriel Caruso (carusogabriel34@gmail.com) +--SKIPIF-- + +--FILE-- +getMessage(); +} + +?> +--EXPECT-- +Zend Extension zend_opcache does not exist