Annotation of embedaddon/php/Zend/tests/exception_009.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Testing exception properties
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class my_file
                      7: {
                      8:          public  function __toString()
                      9:          {
                     10:                  return "somebuildfilename" ;
                     11:          }
                     12: }
                     13: 
                     14: class my_exception extends exception
                     15: {
                     16:          public  function __construct()
                     17:          {
                     18:                  $this->message = new stdclass ;
                     19:                  $this->file = new my_file ;
                     20:                  $this->line = "12" ;
                     21:          }
                     22: }
                     23: 
                     24: throw new my_exception;
                     25: 
                     26: ?>
                     27: --EXPECT--
                     28: Catchable fatal error: Object of class stdClass could not be converted to string in Unknown on line 0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>