ReflectionZendExtension.phpt 534 B

123456789101112131415161718192021
  1. --TEST--
  2. Test ReflectionZendExtension class
  3. --CREDITS--
  4. Gabriel Caruso (carusogabriel34@gmail.com)
  5. --EXTENSIONS--
  6. opcache
  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. ?>
  16. --EXPECT--
  17. string(17) "Zend Technologies"
  18. string(13) "Copyright (c)"
  19. string(12) "Zend OPcache"
  20. string(20) "http://www.zend.com/"
  21. bool(true)