@@ -24,6 +24,7 @@ protected function setUp(): void
2424 'class ' => 'TestClass ' ,
2525 'method ' => 'testMethod ' ,
2626 'file ' => 'TestClass.php ' ,
27+ 'line ' => 42 ,
2728 'lineCount ' => 10 ,
2829 'argCount ' => 2 ,
2930 'returnCount ' => 1 ,
@@ -42,6 +43,7 @@ public function testConstructor(): void
4243
4344 $ this ->assertSame ('TestClass ' , $ metrics ->getClass ());
4445 $ this ->assertSame ('testMethod ' , $ metrics ->getMethod ());
46+ $ this ->assertSame (42 , $ metrics ->getLine ());
4547 $ this ->assertSame (10 , $ metrics ->getLineCount ());
4648 $ this ->assertSame (2 , $ metrics ->getArgCount ());
4749 $ this ->assertSame (1 , $ metrics ->getReturnCount ());
@@ -67,6 +69,7 @@ public function testFromArray(): void
6769
6870 $ this ->assertSame ('TestClass ' , $ metrics ->getClass ());
6971 $ this ->assertSame ('testMethod ' , $ metrics ->getMethod ());
72+ $ this ->assertSame (42 , $ metrics ->getLine ());
7073 $ this ->assertSame (10 , $ metrics ->getLineCount ());
7174 $ this ->assertSame (2 , $ metrics ->getArgCount ());
7275 $ this ->assertSame (1 , $ metrics ->getReturnCount ());
@@ -94,6 +97,7 @@ public function testToArray(): void
9497 'class ' => 'TestClass ' ,
9598 'method ' => 'testMethod ' ,
9699 'file ' => 'TestClass.php ' ,
100+ 'line ' => 42 ,
97101 'lineCount ' => 10 ,
98102 'argCount ' => 2 ,
99103 'returnCount ' => 1 ,
@@ -132,6 +136,7 @@ public function testJsonSerialize(): void
132136 'class ' => 'TestClass ' ,
133137 'method ' => 'testMethod ' ,
134138 'file ' => 'TestClass.php ' ,
139+ 'line ' => 42 ,
135140 'lineCount ' => 10 ,
136141 'argCount ' => 2 ,
137142 'returnCount ' => 1 ,
@@ -169,6 +174,7 @@ public function testCalculateDeltas(): void
169174 'class ' => 'TestClass ' ,
170175 'method ' => 'testMethod ' ,
171176 'file ' => 'TestClass.php ' ,
177+ 'line ' => 42 ,
172178 'lineCount ' => 10 ,
173179 'argCount ' => 2 ,
174180 'returnCount ' => 1 ,
@@ -194,6 +200,7 @@ public function testCalculateDeltas(): void
194200 'class ' => 'TestClass ' ,
195201 'method ' => 'testMethod ' ,
196202 'file ' => 'TestClass.php ' ,
203+ 'line ' => 42 ,
197204 'lineCount ' => 10 ,
198205 'argCount ' => 2 ,
199206 'returnCount ' => 1 ,
0 commit comments