public function testPurchase() { $price = 12.34; $this->assertSame($this->entity, $this->entity->setPurchase($price)); $this->assertSame($price, $this->entity->getPurchase()); }