cvs: ZendEngine2(PHP_5_2) /tests exception_009.phpt

"Felipe Pena" <[email protected]>
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsfelipe1218741433@cvsserver>
felipe		Thu Aug 14 19:17:13 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests	exception_009.phpt 
  Log:
  - New test
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/exception_009.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/exception_009.phpt
+++ ZendEngine2/tests/exception_009.phpt
--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



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.