Lines Matching refs:theClass
112 * @param mixed $theClass
117 public function __construct($theClass = '', $name = '') argument
123 if (is_object($theClass) &&
124 $theClass instanceof ReflectionClass) {
126 } elseif (is_string($theClass) &&
127 $theClass !== '' &&
128 class_exists($theClass, false)) {
132 $name = $theClass;
135 $theClass = new ReflectionClass($theClass);
136 } elseif (is_string($theClass)) {
137 $this->setName($theClass);
146 if (!$theClass->isSubclassOf('PHPUnit_Framework_TestCase')) {
148 'Class "' . $theClass->name . '" does not extend PHPUnit_Framework_TestCase.'
155 $this->setName($theClass->getName());
158 $constructor = $theClass->getConstructor();
166 $theClass->getName()
174 foreach ($theClass->getMethods() as $method) {
175 $this->addTestMethod($theClass, $method);
183 $theClass->getName()
422 * @param ReflectionClass $theClass
429 public static function createTest(ReflectionClass $theClass, $name) argument
431 $className = $theClass->getName();
433 if (!$theClass->isInstantiable()) {
454 $constructor = $theClass->getConstructor();