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 4.3.0
16 class PHPUnit_Framework_SkippedTestCase extends PHPUnit_Framework_TestCase
21 protected $message = '';
26 protected $backupGlobals = false;
31 protected $backupStaticAttributes = false;
36 protected $runTestInSeparateProcess = false;
41 protected $useErrorHandler = false;
46 protected $useOutputBuffering = false;
49 * @param string $message
51 public function __construct($className, $methodName, $message = '')
53 $this->message = $message;
54 parent::__construct($className . '::' . $methodName);
58 * @throws PHPUnit_Framework_Exception
60 protected function runTest()
62 $this->markTestSkipped($this->message);
68 public function getMessage()
70 return $this->message;
74 * Returns a string representation of the test case.
78 public function toString()
80 return $this->getName();