3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
14 * @since Class available since Release 2.0.0
16 class PHPUnit_Framework_Warning extends PHPUnit_Framework_TestCase
21 protected $message = '';
26 protected $backupGlobals = false;
31 protected $backupStaticAttributes = false;
36 protected $runTestInSeparateProcess = false;
41 protected $useErrorHandler = false;
44 * @param string $message
46 public function __construct($message = '')
48 $this->message = $message;
49 parent::__construct('Warning');
53 * @throws PHPUnit_Framework_Exception
55 protected function runTest()
57 $this->fail($this->message);
63 * @since Method available since Release 3.0.0
65 public function getMessage()
67 return $this->message;
71 * Returns a string representation of the test case.
75 * @since Method available since Release 3.4.0
77 public function toString()