curl_multi_init_basic.phpt 703 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Test curl_multi_init()
  3. --CREDITS--
  4. Mark van der Velden
  5. #testfest Utrecht 2009
  6. --SKIPIF--
  7. <?php if (!extension_loaded("curl")) print "skip"; ?>
  8. --FILE--
  9. <?php
  10. /* Prototype : resource curl_multi_init(void)
  11. * Description : Returns a new cURL multi handle
  12. * Source code : ext/curl/multi.c
  13. * Test documentation: http://wiki.php.net/qa/temp/ext/curl
  14. */
  15. // start testing
  16. echo "*** Testing curl_multi_init(void); ***\n";
  17. //create the multiple cURL handle
  18. $mh = curl_multi_init();
  19. var_dump($mh);
  20. curl_multi_close($mh);
  21. var_dump($mh);
  22. ?>
  23. ===DONE===
  24. --EXPECTF--
  25. *** Testing curl_multi_init(void); ***
  26. resource(%d) of type (curl_multi)
  27. resource(%d) of type (Unknown)
  28. ===DONE===