PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Source for file AssertionFailedError.php

Documentation is available at AssertionFailedError.php

  1. <?php
  2. //
  3. // +------------------------------------------------------------------------+
  4. // | PEAR :: PHPUnit2                                                       |
  5. // +------------------------------------------------------------------------+
  6. // | Copyright (c) 2002-2004 Sebastian Bergmann <sb@sebastian-bergmann.de>. |
  7. // +------------------------------------------------------------------------+
  8. // | This source file is subject to version 3.00 of the PHP License,        |
  9. // | that is available at http://www.php.net/license/3_0.txt.               |
  10. // | If you did not receive a copy of the PHP license and are unable to     |
  11. // | obtain it through the world-wide-web, please send a note to            |
  12. // | license@php.net so we can mail you a copy immediately.                 |
  13. // +------------------------------------------------------------------------+
  14. //
  15. // $Id: AssertionFailedError.php,v 1.2 2004/04/15 15:02:32 sebastian Exp $
  16. //
  17.  
  18. /**
  19.  * Thrown when an assertion failed.
  20.  *
  21.  * @author      Sebastian Bergmann <sb@sebastian-bergmann.de>
  22.  * @copyright   Copyright &copy; 2002-2004 Sebastian Bergmann <sb@sebastian-bergmann.de>
  23.  * @license     http://www.php.net/license/3_0.txt The PHP License, Version 3.0
  24.  * @category    PHP
  25.  * @package     PHPUnit2
  26.  * @subpackage  Framework
  27.  */
  28. class PHPUnit2_Framework_AssertionFailedError extends Exception {
  29.     // {{{ public function toString()
  30.  
  31.     /**
  32.     * Wrapper for getMessage() which is declared as final.
  33.     *
  34.     * @return string 
  35.     * @access public
  36.     */
  37.     public function toString({
  38.         return $this->getMessage();
  39.     }
  40.  
  41.     // }}}
  42. }
  43.  
  44. /*
  45.  * vim600:  et sw=2 ts=2 fdm=marker
  46.  * vim<600: et sw=2 ts=2
  47.  */
  48. ?>

Documentation generated on Mon, 11 Mar 2019 13:55:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.