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

Documentation generated on Mon, 11 Mar 2019 14:19:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.