File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -196,5 +196,46 @@ public function testCollect()
196196
197197 return $ coverage ;
198198 }
199+
200+ /**
201+ * @covers PHP_CodeCoverage::getSummary
202+ * @depends testCollect
203+ */
204+ public function testSummary (PHP_CodeCoverage $ coverage )
205+ {
206+ $ this ->assertEquals (
207+ array (
208+ '/usr/local/src/code-coverage/Tests/_files/BankAccount.php ' => array (
209+ 8 => array (
210+ 0 => 'BankAccountTest::testBalanceIsInitiallyZero ' ,
211+ 1 => 'BankAccountTest::testDepositWithdrawMoney '
212+ ),
213+ 9 => -2 ,
214+ 13 => -1 ,
215+ 14 => -1 ,
216+ 15 => -1 ,
217+ 16 => -1 ,
218+ 18 => -1 ,
219+ 22 => array (
220+ 0 => 'BankAccountTest::testBalanceCannotBecomeNegative2 ' ,
221+ 1 => 'BankAccountTest::testDepositWithdrawMoney '
222+ ),
223+ 24 => array (
224+ 0 => 'BankAccountTest::testDepositWithdrawMoney '
225+ ),
226+ 25 => -2 ,
227+ 29 => array (
228+ 0 => 'BankAccountTest::testBalanceCannotBecomeNegative ' ,
229+ 1 => 'BankAccountTest::testDepositWithdrawMoney '
230+ ),
231+ 31 => array (
232+ 0 => 'BankAccountTest::testDepositWithdrawMoney '
233+ ),
234+ 32 => -2
235+ )
236+ ),
237+ $ coverage ->getSummary ()
238+ );
239+ }
199240}
200241?>
You can’t perform that action at this time.
0 commit comments