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.
12 * An incomplete test case
14 * @since Class available since Release 4.3.0
16 class PHPUnit_Framework_IncompleteTestCase 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 $className
50 * @param string $methodName
51 * @param string $message
53 public function __construct($className, $methodName, $message = '')
55 $this->message = $message;
56 parent::__construct($className . '::' . $methodName);
60 * @throws PHPUnit_Framework_Exception
62 protected function runTest()
64 $this->markTestIncomplete($this->message);
70 public function getMessage()
72 return $this->message;
76 * Returns a string representation of the test case.
80 public function toString()
82 return $this->getName();