public function testSetGetPayment() { $transaction = new FinancialTransaction(); $payment = $this->getMock('JMS\\Payment\\CoreBundle\\Model\\PaymentInterface'); $this->assertNull($transaction->getPayment()); $transaction->setPayment($payment); $this->assertSame($payment, $transaction->getPayment()); }