php-src/ext/dom/tests/DOMDocument_validate_error2.phpt
2009-07-02 00:04:52 +00:00

16 lines
367 B
PHP

--TEST--
DOMDocument::validate() should fail if called statically
--CREDITS--
Knut Urdalen <knut@php.net>
#PHPTestFest2009 Norway 2009-06-09 \o/
--SKIPIF--
<?php
require_once dirname(__FILE__) .'/skipif.inc';
?>
--FILE--
<?php
DOMDocument::validate();
?>
--EXPECTF--
Fatal error: Non-static method DOMDocument::validate() cannot be called statically in %s on line %d