Lines Matching refs:type

132      * @param array|string $type
152 …public function getMock($type, $methods = [], array $arguments = [], $mockClassName = '', $callOri… argument
154 if (!is_array($type) && !is_string($type)) {
166 if ($type === 'Traversable' || $type === '\\Traversable') {
167 $type = 'Iterator';
170 if (is_array($type)) {
171 $type = array_unique(
173 function ($type) {
174 if ($type === 'Traversable' ||
175 $type === '\\Traversable' ||
176 $type === '\\Iterator') {
180 return $type;
182 $type
188 if (is_array($type)) {
189 foreach ($type as $_type) {
201 if (!class_exists($type, $callAutoload) &&
202 !interface_exists($type, $callAutoload)
207 $type
257 $type,
269 $type,
281 * @param array|string $type
290 …private function getObject($code, $className, $type = '', $callOriginalConstructor = false, $callA… argument
295 is_string($type) &&
296 !interface_exists($type, $callAutoload)) {
325 $proxyTarget = new $type;
327 $class = new ReflectionClass($type);
537 * @param array|string $type
547 …public function generate($type, array $methods = null, $mockClassName = '', $callOriginalClone = t… argument
549 if (is_array($type)) {
550 sort($type);
555 is_array($type) ? implode('_', $type) : $type .
568 $type,
675 * @param array|string $type
687 …private function generateMock($type, $methods, $mockClassName, $callOriginalClone, $callAutoload, … argument
699 if (is_array($type)) {
700 foreach ($type as $_type) {
737 $type,
893 * @param array|string $type
899 private function generateClassName($type, $className, $prefix) argument
901 if (is_array($type)) {
902 $type = implode('_', $type);
905 if ($type[0] == '\\') {
906 $type = substr($type, 1);
909 $classNameParts = explode('\\', $type);
912 $type = array_pop($classNameParts);
914 $fullClassName = $namespaceName . '\\' . $type;
917 $fullClassName = $type;
922 $className = $prefix . $type . '_' .
929 'originalClassName' => $type,