ReflectionZendExtension.phpt 713 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test ReflectionZendExtension class
  3. --CREDITS--
  4. Gabriel Caruso (carusogabriel34@gmail.com)
  5. --SKIPIF--
  6. <?php if(!extension_loaded('Zend OPcache')) die('skip Zend OPcache extension not loaded'); ?>
  7. --FILE--
  8. <?php
  9. $reflection = new ReflectionZendExtension('Zend OPcache');
  10. var_dump($reflection->getAuthor());
  11. var_dump($reflection->getCopyright());
  12. var_dump($reflection->getName());
  13. var_dump($reflection->getURL());
  14. var_dump($reflection->getVersion() === PHP_VERSION);
  15. var_dump(gettype($reflection->export('Zend OPcache', true)) === 'string');
  16. ?>
  17. --EXPECTF--
  18. string(17) "Zend Technologies"
  19. string(23) "Copyright (c) 1999-20%d"
  20. string(12) "Zend OPcache"
  21. string(20) "http://www.zend.com/"
  22. bool(true)
  23. bool(true)