xref: /PHP-8.0/ext/tidy/tests/uninitialized.phpt (revision d4bf0799)
1--TEST--
2Operations on uninitialized tidy object
3--SKIPIF--
4<?php if (!extension_loaded("tidy")) print "skip"; ?>
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