Exemplo n.º 1
0
 public function testCtor()
 {
     $account = new AccountObject();
     $this->assertNull($account->getId());
     $this->assertNull($account->getType());
     $accountProvider = new BalanceObject();
     $accountProvider->setId('foo');
     $accountProvider->setType('baz');
     $account = new AccountObject($accountProvider);
     $this->assertSame($accountProvider->getId(), $account->getId());
     $this->assertSame($accountProvider->getType(), $account->getType());
 }