From: Dmitry Stogov Date: Mon, 5 Mar 2018 08:51:58 +0000 (+0300) Subject: Test ReflectionZendExtension class X-Git-Tag: php-7.3.0alpha1~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d139b16c2b8d5c393a5dc0c2ffbb2170fd6d391;p=php Test ReflectionZendExtension class --- diff --git a/ext/reflection/tests/ReflectionZendExtension.phpt b/ext/reflection/tests/ReflectionZendExtension.phpt new file mode 100644 index 0000000000..b4cd96e97b --- /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 0000000000..efce02640b --- /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