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

Source for file Warning.php

Documentation is available at Warning.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: Warning.php,v 1.3 2004/04/17 19:36:39 sebastian Exp $
  16. //
  17.  
  18. /**
  19.  * @author      Sebastian Bergmann <sb@sebastian-bergmann.de>
  20.  * @copyright   Copyright &copy; 2002-2004 Sebastian Bergmann <sb@sebastian-bergmann.de>
  21.  * @license     http://www.php.net/license/3_0.txt The PHP License, Version 3.0
  22.  * @category    PHP
  23.  * @package     PHPUnit2
  24.  * @subpackage  Framework
  25.  */
  26.     // {{{ Members
  27.  
  28.     /**
  29.     * @var    string 
  30.     * @access private
  31.     */
  32.     private $message '';
  33.  
  34.     // }}}
  35.     // {{{ public function __construct($message = '')
  36.  
  37.     /**
  38.     * @param  string  $message 
  39.     * @access protected
  40.     */
  41.     public function __construct($message ''{
  42.         $this->message $message;
  43.         parent::__construct('Warning');
  44.     }
  45.  
  46.     // }}}
  47.     // {{{ protected function runTest()
  48.  
  49.     /**
  50.     * @access protected
  51.     */
  52.     protected function runTest({
  53.         $this->fail($this->message);
  54.     }
  55.  
  56.     // }}}
  57. }
  58.  
  59. /*
  60.  * vim600:  et sw=2 ts=2 fdm=marker
  61.  * vim<600: et sw=2 ts=2
  62.  */
  63. ?>

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