1<?php 2/* 3 * This file is part of PHPUnit. 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11/** 12 * An incomplete test case 13 */ 14class PHPUnit_Framework_IncompleteTestCase extends PHPUnit_Framework_TestCase 15{ 16 /** 17 * @var string 18 */ 19 protected $message = ''; 20 21 /** 22 * @var bool 23 */ 24 protected $backupGlobals = false; 25 26 /** 27 * @var bool 28 */ 29 protected $backupStaticAttributes = false; 30 31 /** 32 * @var bool 33 */ 34 protected $runTestInSeparateProcess = false; 35 36 /** 37 * @var bool 38 */ 39 protected $useErrorHandler = false; 40 41 /** 42 * @var bool 43 */ 44 protected $useOutputBuffering = false; 45 46 /** 47 * @param string $className 48 * @param string $methodName 49 * @param string $message 50 */ 51 public function __construct($className, $methodName, $message = '') 52 { 53 $this->message = $message; 54 parent::__construct($className . '::' . $methodName); 55 } 56 57 /** 58 * @throws PHPUnit_Framework_Exception 59 */ 60 protected function runTest() 61 { 62 $this->markTestIncomplete($this->message); 63 } 64 65 /** 66 * @return string 67 */ 68 public function getMessage() 69 { 70 return $this->message; 71 } 72 73 /** 74 * Returns a string representation of the test case. 75 * 76 * @return string 77 */ 78 public function toString() 79 { 80 return $this->getName(); 81 } 82} 83