summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/tests/xmlwriter_set_indent_string_error_001.phpt
blob: c39678dac9cc2c4607d1d53f676451fc70bd242b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
xmlwriter_set_indent_string with missing param(s)
--SKIPIF--
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
--FILE--
<?php 
$temp_filename = dirname(__FILE__)."/xmlwriter_set_indent_string_error.tmp";
	$fp = fopen($temp_filename, "w");
	fwrite ($fp, "Hi");
	fclose($fp);
$resource = xmlwriter_open_uri($temp_filename);
var_dump(xmlwriter_set_indent_string($resource));
?>
--CLEAN--
<?php
$temp_filename = dirname(__FILE__)."/xmlwriter_set_indent_string_error.tmp";
unlink($temp_filename);
?>
--CREDIT--
Koen Kuipers koenk82@gmail.com
--EXPECTF--

Warning: xmlwriter_set_indent_string() expects exactly %d parameters, %d given in %s on line %d
NULL