1--TEST-- 2function test: mysqli_warning_count() 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once dirname(__DIR__) . "/test_setup/test_helpers.inc"; 8mysqli_check_skip_test(); 9?> 10--FILE-- 11<?php 12require_once dirname(__DIR__) . "/test_setup/test_helpers.inc"; 13 14 $link = default_mysqli_connect(); 15 16 mysqli_query($link, "DROP TABLE IF EXISTS test_mysqli_warning_count"); 17 mysqli_query($link, "DROP TABLE IF EXISTS test_mysqli_warning_count"); 18 19 var_dump(mysqli_warning_count($link)); 20 21 mysqli_close($link); 22 print "done!"; 23?> 24--CLEAN-- 25<?php 26require_once dirname(__DIR__) . "/test_setup/test_helpers.inc"; 27tear_down_table_on_default_connection('test_mysqli_warning_count'); 28?> 29--EXPECT-- 30int(1) 31done! 32