1<?xml version="1.0"?> 2<phpunit xmlns="http://schema.phpunit.de/coverage/1.0"> 3 <file name="BankAccount.php"> 4 <totals> 5 <lines total="33" comments="0" code="33" executable="10" executed="5" percent="50.00%"/> 6 <methods count="4" tested="3" percent="75.00%"/> 7 <functions count="0" tested="0" percent=""/> 8 <classes count="1" tested="0" percent="0.00%"/> 9 <traits count="0" tested="0" percent=""/> 10 </totals> 11 <class name="BankAccount" start="2" executable="10" executed="5" crap="8.12"> 12 <package full="" name="" sub="" category=""/> 13 <namespace name=""/> 14 <method name="getBalance" signature="getBalance()" start="6" end="9" crap="1" executable="1" executed="1" coverage="100"/> 15 <method name="setBalance" signature="setBalance($balance)" start="11" end="18" crap="6" executable="5" executed="0" coverage="0"/> 16 <method name="depositMoney" signature="depositMoney($balance)" start="20" end="25" crap="1" executable="2" executed="2" coverage="100"/> 17 <method name="withdrawMoney" signature="withdrawMoney($balance)" start="27" end="32" crap="1" executable="2" executed="2" coverage="100"/> 18 </class> 19 <coverage> 20 <line nr="8"> 21 <covered by="BankAccountTest::testBalanceIsInitiallyZero"/> 22 <covered by="BankAccountTest::testDepositWithdrawMoney"/> 23 </line> 24 <line nr="22"> 25 <covered by="BankAccountTest::testBalanceCannotBecomeNegative2"/> 26 <covered by="BankAccountTest::testDepositWithdrawMoney"/> 27 </line> 28 <line nr="24"> 29 <covered by="BankAccountTest::testDepositWithdrawMoney"/> 30 </line> 31 <line nr="29"> 32 <covered by="BankAccountTest::testBalanceCannotBecomeNegative"/> 33 <covered by="BankAccountTest::testDepositWithdrawMoney"/> 34 </line> 35 <line nr="31"> 36 <covered by="BankAccountTest::testDepositWithdrawMoney"/> 37 </line> 38 </coverage> 39 </file> 40</phpunit> 41