com php-src: this test depends on the simplexml ext, not just on xml: ext/simplexml/tests/bug62328.phpt ext/xml/tests/bug62328.phpt

From: Date: Sat, 23 Aug 2014 22:08:09 +0000
Subject: com php-src: this test depends on the simplexml ext, not just on xml: ext/simplexml/tests/bug62328.phpt ext/xml/tests/bug62328.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-80834@lists.php.net to get a copy of this message
Commit: cb41a7bad1350f1c9bd162abf52eea128a395e0a Author: Ferenc Kovacs <tyrael@php.net> Sun, 24 Aug 2014 00:08:09 +0200 Parents: 54fbbded372b771cf281a73e1981cde642107924 Branches: PHP-5.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cb41a7bad1350f1c9bd162abf52eea128a395e0a Log: this test depends on the simplexml ext, not just on xml Changed paths: A ext/simplexml/tests/bug62328.phpt D ext/xml/tests/bug62328.phpt Diff: diff --git a/ext/simplexml/tests/bug62328.phpt b/ext/simplexml/tests/bug62328.phpt new file mode 100644 index 0000000..a6e60e4 --- /dev/null +++ b/ext/simplexml/tests/bug62328.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #62328 (implementing __toString and a cast to string fails) +--SKIPIF-- +<?php if (!extension_loaded("simplexml")) print "skip"; ?> +--FILE-- +<?php +class UberSimpleXML extends SimpleXMLElement { + public function __toString() { + return 'stringification'; + } +} + +$xml = new UberSimpleXML('<xml/>'); + +var_dump((string) $xml); +var_dump($xml->__toString()); +--EXPECT-- +string(15) "stringification" +string(15) "stringification" diff --git a/ext/xml/tests/bug62328.phpt b/ext/xml/tests/bug62328.phpt deleted file mode 100644 index e4c3c59..0000000 --- a/ext/xml/tests/bug62328.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Bug #62328 (implementing __toString and a cast to string fails) ---SKIPIF-- -<?php -require_once("skipif.inc"); -?> ---FILE-- -<?php -class UberSimpleXML extends SimpleXMLElement { - public function __toString() { - return 'stringification'; - } -} - -$xml = new UberSimpleXML('<xml/>'); - -var_dump((string) $xml); -var_dump($xml->__toString()); ---EXPECT-- -string(15) "stringification" -string(15) "stringification"

« previous php.cvs (#80834) next »