]> granicus.if.org Git - php/commitdiff
- New test
authorFelipe Pena <felipe@php.net>
Thu, 14 Aug 2008 19:14:56 +0000 (19:14 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 14 Aug 2008 19:14:56 +0000 (19:14 +0000)
Zend/tests/exception_009.phpt [new file with mode: 0644]

diff --git a/Zend/tests/exception_009.phpt b/Zend/tests/exception_009.phpt
new file mode 100644 (file)
index 0000000..aec4da4
--- /dev/null
@@ -0,0 +1,28 @@
+--TEST--
+Testing exception properties
+--FILE--
+<?php
+
+class my_file
+{
+         public  function __toString()
+         {
+                 return "somebuildfilename" ;
+         }
+}
+
+class my_exception extends exception
+{
+         public  function __construct()
+         {/*
+                 $this->message = new stdclass ;
+                 $this->file = new my_file ;*/
+                 $this->line = "12" ;
+         }
+}
+
+throw new my_exception;
+
+?>
+--EXPECT--
+Catchable fatal error: Object of class stdClass could not be converted to Unicode string in Unknown on line 0