public function BankAccountTest::testDepositWithdrawMoney

@covers BankAccount::getBalance @covers BankAccount::depositMoney @covers BankAccount::withdrawMoney

File

drupal/core/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php, line 62

Class

BankAccountTest

Code

public function testDepositWithdrawMoney() {
  $this
    ->assertEquals(0, $this->ba
    ->getBalance());
  $this->ba
    ->depositMoney(1);
  $this
    ->assertEquals(1, $this->ba
    ->getBalance());
  $this->ba
    ->withdrawMoney(1);
  $this
    ->assertEquals(0, $this->ba
    ->getBalance());
}