phpcredits.phpt 596 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --TEST--
  2. phpcredits()
  3. --FILE--
  4. <?php
  5. var_dump(phpcredits());
  6. var_dump(phpcredits(array()));
  7. echo "--\n";
  8. var_dump(phpcredits(0));
  9. echo "--\n";
  10. var_dump(phpcredits(CREDITS_GROUP));
  11. ?>
  12. --EXPECTF--
  13. PHP Credits
  14. PHP Group
  15. %a
  16. Language Design & Concept
  17. %a
  18. %wPHP Authors%w
  19. %a
  20. %wSAPI Modules%w
  21. %a
  22. %wModule Authors%w
  23. %a
  24. %wPHP Documentation%w
  25. %a
  26. PHP Quality Assurance Team
  27. %a
  28. %wWebsites and Infrastructure team%w
  29. %a
  30. bool(true)
  31. Warning: phpcredits() expects parameter 1 to be long, array given in %sphpcredits.php on line 4
  32. NULL
  33. --
  34. PHP Credits
  35. bool(true)
  36. --
  37. PHP Credits
  38. PHP Group
  39. %a
  40. bool(true)