Skip to content

Commit 0f4da34

Browse files
author
Dominik Liebler
committed
fixed Proxy tests
1 parent aff0ca5 commit 0f4da34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Structural/Proxy/Tests/ProxyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public function testProxyWillOnlyExecuteExpensiveGetBalanceOnce()
1313
$bankAccount->deposit(30);
1414

1515
// this time balance is being calculated
16-
$this->assertEquals(0, $bankAccount->getBalance());
16+
$this->assertEquals(30, $bankAccount->getBalance());
1717

1818
// inheritance allows for BankAccountProxy to behave to an outsider exactly like ServerBankAccount
1919
$bankAccount->deposit(50);
2020

2121
// this time the previously calculated balance is returned again without re-calculating it
22-
$this->assertEquals(0, $bankAccount->getBalance());
22+
$this->assertEquals(30, $bankAccount->getBalance());
2323
}
2424
}

0 commit comments

Comments
 (0)