File tree Expand file tree Collapse file tree 4 files changed +31
-19
lines changed
Expand file tree Collapse file tree 4 files changed +31
-19
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ protected function setUp()
101101 TEST_FILES_PATH . 'NamespaceCoveragePublicTest.php ' ,
102102 TEST_FILES_PATH . 'NamespaceCoveredClass.php ' ,
103103 TEST_FILES_PATH . 'NotExistingCoveredElementTest.php ' ,
104- TEST_FILES_PATH . 'function .php ' ,
104+ TEST_FILES_PATH . 'source .php ' ,
105105 TEST_FILES_PATH . 'source_with_ignore.php ' ,
106106 TEST_FILES_PATH . 'source_without_ignore.php '
107107 );
Original file line number Diff line number Diff line change @@ -127,11 +127,11 @@ public function testCountLines()
127127 {
128128 $ this ->assertEquals (
129129 array (
130- 'loc ' => 8 ,
131- 'cloc ' => 3 ,
132- 'ncloc ' => 5
130+ 'loc ' => 20 ,
131+ 'cloc ' => 6 ,
132+ 'ncloc ' => 14
133133 ),
134- PHP_CodeCoverage_Util::countLines (TEST_FILES_PATH . 'function .php ' )
134+ PHP_CodeCoverage_Util::countLines (TEST_FILES_PATH . 'source .php ' )
135135 );
136136 }
137137
@@ -204,18 +204,18 @@ public function testGetFunctionsInFile()
204204 {
205205 $ this ->assertEquals (
206206 array (
207- 'foo ' => array (
207+ 'bar \\ baz \\ foo ' => array (
208208 'docComment ' => '/**
209209 * @param mixed $bar
210210 */ ' ,
211- 'signature ' => 'function foo($bar) ' ,
212- 'startLine ' => 5 ,
213- 'endLine ' => 8 ,
214- 'ccn ' => 1
211+ 'signature ' => 'function & foo($bar) ' ,
212+ 'startLine ' => 14 ,
213+ 'endLine ' => 20 ,
214+ 'ccn ' => 2
215215 )
216216 ),
217217 PHP_CodeCoverage_Util::getFunctionsInFile (
218- TEST_FILES_PATH . 'function .php ' ,
218+ TEST_FILES_PATH . 'source .php ' ,
219219 FALSE
220220 )
221221 );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace bar \baz ;
3+
4+ /**
5+ * Represents foo.
6+ */
7+ class foo
8+ {
9+ }
10+
11+ /**
12+ * @param mixed $bar
13+ */
14+ function &foo ($ bar )
15+ {
16+ $ baz = function () {};
17+ $ a = TRUE ? TRUE : FALSE ;
18+ $ b = "{$ a }" ;
19+ $ c = "$ {b}" ;
20+ }
You can’t perform that action at this time.
0 commit comments