Esempio n. 1
0
 public function testSell()
 {
     $this->lot->setQuantity(2);
     $this->assertFalse($this->lot->sell(3));
     $this->lot->setQuantity(10);
     $this->assertTrue($this->lot->sell(5));
     $this->assertEquals(5, $this->lot->getQuantity());
     $this->assertEquals(1500, $this->lot->getAmount());
 }