mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00

This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
23 lines
702 B
PHP
23 lines
702 B
PHP
--TEST--
|
|
Test ReflectionZendExtension class
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel34@gmail.com)
|
|
--SKIPIF--
|
|
<?php if(!extension_loaded('Zend OPcache')) die('skip Zend OPcache extension not loaded'); ?>
|
|
--FILE--
|
|
<?php
|
|
$reflection = new ReflectionZendExtension('Zend OPcache');
|
|
var_dump($reflection->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');
|
|
?>
|
|
--EXPECT--
|
|
string(17) "Zend Technologies"
|
|
string(13) "Copyright (c)"
|
|
string(12) "Zend OPcache"
|
|
string(20) "http://www.zend.com/"
|
|
bool(true)
|
|
bool(true)
|