@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | public function testGetIncludes() |
| 38 | 38 | { |
| 39 | 39 | $this->assertSame( |
| 40 | - array('test4.php', 'test3.php', 'test2.php', 'test1.php'), |
|
| 41 | - $this->ts->getIncludes() |
|
| 40 | + array('test4.php', 'test3.php', 'test2.php', 'test1.php'), |
|
| 41 | + $this->ts->getIncludes() |
|
| 42 | 42 | ); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -49,13 +49,13 @@ discard block |
||
| 49 | 49 | public function testGetIncludesCategorized() |
| 50 | 50 | { |
| 51 | 51 | $this->assertSame( |
| 52 | - array( |
|
| 52 | + array( |
|
| 53 | 53 | 'require_once' => array('test4.php'), |
| 54 | 54 | 'require' => array('test3.php'), |
| 55 | 55 | 'include_once' => array('test2.php'), |
| 56 | 56 | 'include' => array('test1.php') |
| 57 | - ), |
|
| 58 | - $this->ts->getIncludes(TRUE) |
|
| 57 | + ), |
|
| 58 | + $this->ts->getIncludes(TRUE) |
|
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | public function testGetIncludesCategory() |
| 67 | 67 | { |
| 68 | 68 | $this->assertSame( |
| 69 | - array('test4.php'), |
|
| 70 | - $this->ts->getIncludes(TRUE, 'require_once') |
|
| 69 | + array('test4.php'), |
|
| 70 | + $this->ts->getIncludes(TRUE, 'require_once') |
|
| 71 | 71 | ); |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function testGetName() |
| 29 | 29 | { |
| 30 | 30 | $tokenStream = new PHP_Token_Stream( |
| 31 | - TEST_FILES_PATH . 'classInNamespace.php' |
|
| 31 | + TEST_FILES_PATH . 'classInNamespace.php' |
|
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | 34 | foreach ($tokenStream as $token) { |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | class Test { |
| 3 | - public function methodOne() { |
|
| 4 | - $foo = new class { |
|
| 5 | - public function method_in_anonymous_class() { |
|
| 6 | - return true; |
|
| 7 | - } |
|
| 8 | - }; |
|
| 3 | + public function methodOne() { |
|
| 4 | + $foo = new class { |
|
| 5 | + public function method_in_anonymous_class() { |
|
| 6 | + return true; |
|
| 7 | + } |
|
| 8 | + }; |
|
| 9 | 9 | |
| 10 | - return $foo->method_in_anonymous_class(); |
|
| 11 | - } |
|
| 10 | + return $foo->method_in_anonymous_class(); |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - public function methodTwo() { |
|
| 14 | - return false; |
|
| 15 | - } |
|
| 13 | + public function methodTwo() { |
|
| 14 | + return false; |
|
| 15 | + } |
|
| 16 | 16 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Some comment |
|
| 4 | - */ |
|
| 3 | + * Some comment |
|
| 4 | + */ |
|
| 5 | 5 | class Foo{function foo(){} |
| 6 | 6 | |
| 7 | 7 | /** |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | $this->canDefineParameters(); |
| 220 | 220 | |
| 221 | 221 | $this->matcher->parametersMatcher = |
| 222 | - new PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters($args); |
|
| 222 | + new PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters($args); |
|
| 223 | 223 | |
| 224 | 224 | return $this; |
| 225 | 225 | } |
@@ -35,81 +35,81 @@ discard block |
||
| 35 | 35 | * @var array |
| 36 | 36 | */ |
| 37 | 37 | protected $blacklistedMethodNames = array( |
| 38 | - '__CLASS__' => true, |
|
| 39 | - '__DIR__' => true, |
|
| 40 | - '__FILE__' => true, |
|
| 41 | - '__FUNCTION__' => true, |
|
| 42 | - '__LINE__' => true, |
|
| 43 | - '__METHOD__' => true, |
|
| 44 | - '__NAMESPACE__' => true, |
|
| 45 | - '__TRAIT__' => true, |
|
| 46 | - '__clone' => true, |
|
| 47 | - '__halt_compiler' => true, |
|
| 48 | - 'abstract' => true, |
|
| 49 | - 'and' => true, |
|
| 50 | - 'array' => true, |
|
| 51 | - 'as' => true, |
|
| 52 | - 'break' => true, |
|
| 53 | - 'callable' => true, |
|
| 54 | - 'case' => true, |
|
| 55 | - 'catch' => true, |
|
| 56 | - 'class' => true, |
|
| 57 | - 'clone' => true, |
|
| 58 | - 'const' => true, |
|
| 59 | - 'continue' => true, |
|
| 60 | - 'declare' => true, |
|
| 61 | - 'default' => true, |
|
| 62 | - 'die' => true, |
|
| 63 | - 'do' => true, |
|
| 64 | - 'echo' => true, |
|
| 65 | - 'else' => true, |
|
| 66 | - 'elseif' => true, |
|
| 67 | - 'empty' => true, |
|
| 68 | - 'enddeclare' => true, |
|
| 69 | - 'endfor' => true, |
|
| 70 | - 'endforeach' => true, |
|
| 71 | - 'endif' => true, |
|
| 72 | - 'endswitch' => true, |
|
| 73 | - 'endwhile' => true, |
|
| 74 | - 'eval' => true, |
|
| 75 | - 'exit' => true, |
|
| 76 | - 'expects' => true, |
|
| 77 | - 'extends' => true, |
|
| 78 | - 'final' => true, |
|
| 79 | - 'for' => true, |
|
| 80 | - 'foreach' => true, |
|
| 81 | - 'function' => true, |
|
| 82 | - 'global' => true, |
|
| 83 | - 'goto' => true, |
|
| 84 | - 'if' => true, |
|
| 85 | - 'implements' => true, |
|
| 86 | - 'include' => true, |
|
| 87 | - 'include_once' => true, |
|
| 88 | - 'instanceof' => true, |
|
| 89 | - 'insteadof' => true, |
|
| 90 | - 'interface' => true, |
|
| 91 | - 'isset' => true, |
|
| 92 | - 'list' => true, |
|
| 93 | - 'namespace' => true, |
|
| 94 | - 'new' => true, |
|
| 95 | - 'or' => true, |
|
| 96 | - 'print' => true, |
|
| 97 | - 'private' => true, |
|
| 98 | - 'protected' => true, |
|
| 99 | - 'public' => true, |
|
| 100 | - 'require' => true, |
|
| 101 | - 'require_once' => true, |
|
| 102 | - 'return' => true, |
|
| 103 | - 'static' => true, |
|
| 104 | - 'switch' => true, |
|
| 105 | - 'throw' => true, |
|
| 106 | - 'trait' => true, |
|
| 107 | - 'try' => true, |
|
| 108 | - 'unset' => true, |
|
| 109 | - 'use' => true, |
|
| 110 | - 'var' => true, |
|
| 111 | - 'while' => true, |
|
| 112 | - 'xor' => true |
|
| 38 | + '__CLASS__' => true, |
|
| 39 | + '__DIR__' => true, |
|
| 40 | + '__FILE__' => true, |
|
| 41 | + '__FUNCTION__' => true, |
|
| 42 | + '__LINE__' => true, |
|
| 43 | + '__METHOD__' => true, |
|
| 44 | + '__NAMESPACE__' => true, |
|
| 45 | + '__TRAIT__' => true, |
|
| 46 | + '__clone' => true, |
|
| 47 | + '__halt_compiler' => true, |
|
| 48 | + 'abstract' => true, |
|
| 49 | + 'and' => true, |
|
| 50 | + 'array' => true, |
|
| 51 | + 'as' => true, |
|
| 52 | + 'break' => true, |
|
| 53 | + 'callable' => true, |
|
| 54 | + 'case' => true, |
|
| 55 | + 'catch' => true, |
|
| 56 | + 'class' => true, |
|
| 57 | + 'clone' => true, |
|
| 58 | + 'const' => true, |
|
| 59 | + 'continue' => true, |
|
| 60 | + 'declare' => true, |
|
| 61 | + 'default' => true, |
|
| 62 | + 'die' => true, |
|
| 63 | + 'do' => true, |
|
| 64 | + 'echo' => true, |
|
| 65 | + 'else' => true, |
|
| 66 | + 'elseif' => true, |
|
| 67 | + 'empty' => true, |
|
| 68 | + 'enddeclare' => true, |
|
| 69 | + 'endfor' => true, |
|
| 70 | + 'endforeach' => true, |
|
| 71 | + 'endif' => true, |
|
| 72 | + 'endswitch' => true, |
|
| 73 | + 'endwhile' => true, |
|
| 74 | + 'eval' => true, |
|
| 75 | + 'exit' => true, |
|
| 76 | + 'expects' => true, |
|
| 77 | + 'extends' => true, |
|
| 78 | + 'final' => true, |
|
| 79 | + 'for' => true, |
|
| 80 | + 'foreach' => true, |
|
| 81 | + 'function' => true, |
|
| 82 | + 'global' => true, |
|
| 83 | + 'goto' => true, |
|
| 84 | + 'if' => true, |
|
| 85 | + 'implements' => true, |
|
| 86 | + 'include' => true, |
|
| 87 | + 'include_once' => true, |
|
| 88 | + 'instanceof' => true, |
|
| 89 | + 'insteadof' => true, |
|
| 90 | + 'interface' => true, |
|
| 91 | + 'isset' => true, |
|
| 92 | + 'list' => true, |
|
| 93 | + 'namespace' => true, |
|
| 94 | + 'new' => true, |
|
| 95 | + 'or' => true, |
|
| 96 | + 'print' => true, |
|
| 97 | + 'private' => true, |
|
| 98 | + 'protected' => true, |
|
| 99 | + 'public' => true, |
|
| 100 | + 'require' => true, |
|
| 101 | + 'require_once' => true, |
|
| 102 | + 'return' => true, |
|
| 103 | + 'static' => true, |
|
| 104 | + 'switch' => true, |
|
| 105 | + 'throw' => true, |
|
| 106 | + 'trait' => true, |
|
| 107 | + 'try' => true, |
|
| 108 | + 'unset' => true, |
|
| 109 | + 'use' => true, |
|
| 110 | + 'var' => true, |
|
| 111 | + 'while' => true, |
|
| 112 | + 'xor' => true |
|
| 113 | 113 | ); |
| 114 | 114 | |
| 115 | 115 | /** |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | ); |
| 396 | 396 | |
| 397 | 397 | $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . |
| 398 | - DIRECTORY_SEPARATOR; |
|
| 398 | + DIRECTORY_SEPARATOR; |
|
| 399 | 399 | $classTemplate = new Text_Template( |
| 400 | 400 | $templateDir . 'trait_class.tpl' |
| 401 | 401 | ); |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | ); |
| 457 | 457 | |
| 458 | 458 | $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . |
| 459 | - DIRECTORY_SEPARATOR; |
|
| 459 | + DIRECTORY_SEPARATOR; |
|
| 460 | 460 | $classTemplate = new Text_Template( |
| 461 | 461 | $templateDir . 'trait_class.tpl' |
| 462 | 462 | ); |
@@ -624,7 +624,7 @@ discard block |
||
| 624 | 624 | protected function generateMock($type, $methods, $mockClassName, $callOriginalClone, $callAutoload, $cloneArguments, $callOriginalMethods) |
| 625 | 625 | { |
| 626 | 626 | $templateDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Generator' . |
| 627 | - DIRECTORY_SEPARATOR; |
|
| 627 | + DIRECTORY_SEPARATOR; |
|
| 628 | 628 | $classTemplate = new Text_Template( |
| 629 | 629 | $templateDir . 'mocked_class.tpl' |
| 630 | 630 | ); |
@@ -807,8 +807,8 @@ discard block |
||
| 807 | 807 | ); |
| 808 | 808 | |
| 809 | 809 | return array( |
| 810 | - 'code' => $classTemplate->render(), |
|
| 811 | - 'mockClassName' => $mockClassName['className'] |
|
| 810 | + 'code' => $classTemplate->render(), |
|
| 811 | + 'mockClassName' => $mockClassName['className'] |
|
| 812 | 812 | ); |
| 813 | 813 | } |
| 814 | 814 | |
@@ -842,15 +842,15 @@ discard block |
||
| 842 | 842 | if ($className == '') { |
| 843 | 843 | do { |
| 844 | 844 | $className = $prefix . $type . '_' . |
| 845 | - substr(md5(microtime()), 0, 8); |
|
| 845 | + substr(md5(microtime()), 0, 8); |
|
| 846 | 846 | } while (class_exists($className, false)); |
| 847 | 847 | } |
| 848 | 848 | |
| 849 | 849 | return array( |
| 850 | - 'className' => $className, |
|
| 851 | - 'originalClassName' => $type, |
|
| 852 | - 'fullClassName' => $fullClassName, |
|
| 853 | - 'namespaceName' => $namespaceName |
|
| 850 | + 'className' => $className, |
|
| 851 | + 'originalClassName' => $type, |
|
| 852 | + 'fullClassName' => $fullClassName, |
|
| 853 | + 'namespaceName' => $namespaceName |
|
| 854 | 854 | ); |
| 855 | 855 | } |
| 856 | 856 | |
@@ -21,25 +21,25 @@ |
||
| 21 | 21 | * @var array |
| 22 | 22 | */ |
| 23 | 23 | protected static $uncloneableExtensions = array( |
| 24 | - 'mysqli' => true, |
|
| 25 | - 'SQLite' => true, |
|
| 26 | - 'sqlite3' => true, |
|
| 27 | - 'tidy' => true, |
|
| 28 | - 'xmlwriter' => true, |
|
| 29 | - 'xsl' => true |
|
| 24 | + 'mysqli' => true, |
|
| 25 | + 'SQLite' => true, |
|
| 26 | + 'sqlite3' => true, |
|
| 27 | + 'tidy' => true, |
|
| 28 | + 'xmlwriter' => true, |
|
| 29 | + 'xsl' => true |
|
| 30 | 30 | ); |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | 35 | protected static $uncloneableClasses = array( |
| 36 | - 'Closure', |
|
| 37 | - 'COMPersistHelper', |
|
| 38 | - 'IteratorIterator', |
|
| 39 | - 'RecursiveIteratorIterator', |
|
| 40 | - 'SplFileObject', |
|
| 41 | - 'PDORow', |
|
| 42 | - 'ZipArchive' |
|
| 36 | + 'Closure', |
|
| 37 | + 'COMPersistHelper', |
|
| 38 | + 'IteratorIterator', |
|
| 39 | + 'RecursiveIteratorIterator', |
|
| 40 | + 'SplFileObject', |
|
| 41 | + 'PDORow', |
|
| 42 | + 'ZipArchive' |
|
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -107,8 +107,8 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | if ($this->afterMatchBuilderId !== null) { |
| 109 | 109 | $builder = $invocation->object |
| 110 | - ->__phpunit_getInvocationMocker() |
|
| 111 | - ->lookupId($this->afterMatchBuilderId); |
|
| 110 | + ->__phpunit_getInvocationMocker() |
|
| 111 | + ->lookupId($this->afterMatchBuilderId); |
|
| 112 | 112 | |
| 113 | 113 | if (!$builder) { |
| 114 | 114 | throw new PHPUnit_Framework_Exception( |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | { |
| 161 | 161 | if ($this->afterMatchBuilderId !== null) { |
| 162 | 162 | $builder = $invocation->object |
| 163 | - ->__phpunit_getInvocationMocker() |
|
| 164 | - ->lookupId($this->afterMatchBuilderId); |
|
| 163 | + ->__phpunit_getInvocationMocker() |
|
| 164 | + ->lookupId($this->afterMatchBuilderId); |
|
| 165 | 165 | |
| 166 | 166 | if (!$builder) { |
| 167 | 167 | throw new PHPUnit_Framework_Exception( |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | if (isset($this->_parameterGroups[$callIndex])) { |
| 89 | 89 | $parameters = $this->_parameterGroups[$callIndex]; |
| 90 | 90 | } else { |
| 91 | - // no parameter assertion for this call index |
|
| 91 | + // no parameter assertion for this call index |
|
| 92 | 92 | return; |
| 93 | 93 | } |
| 94 | 94 | |