xref: /php-src/ext/tidy/tests/uninitialized.phpt (revision 7f2f0c00)
1--TEST--
2Operations on uninitialized tidy object
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7
8$tidy = new tidy;
9try {
10    var_dump($tidy->getHtmlVer());
11} catch (Error $e) {
12    echo $e->getMessage(), "\n";
13}
14try {
15    var_dump($tidy->isXhtml());
16} catch (Error $e) {
17    echo $e->getMessage(), "\n";
18}
19try {
20    var_dump($tidy->isXml());
21} catch (Error $e) {
22    echo $e->getMessage(), "\n";
23}
24
25?>
26--EXPECT--
27tidy object is not initialized
28tidy object is not initialized
29tidy object is not initialized
30