We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff0ca5 commit 0f4da34Copy full SHA for 0f4da34
Structural/Proxy/Tests/ProxyTest.php
@@ -13,12 +13,12 @@ public function testProxyWillOnlyExecuteExpensiveGetBalanceOnce()
13
$bankAccount->deposit(30);
14
15
// this time balance is being calculated
16
- $this->assertEquals(0, $bankAccount->getBalance());
+ $this->assertEquals(30, $bankAccount->getBalance());
17
18
// inheritance allows for BankAccountProxy to behave to an outsider exactly like ServerBankAccount
19
$bankAccount->deposit(50);
20
21
// this time the previously calculated balance is returned again without re-calculating it
22
23
}
24
0 commit comments