示例#1
0
 /**
  * @covers  \SebastianBergmann\Money\Money::lessThan
  * @covers  \SebastianBergmann\Money\Money::assertSameCurrency
  * @uses    \SebastianBergmann\Money\Money::__construct
  * @uses    \SebastianBergmann\Money\Money::handleCurrencyArgument
  * @uses    \SebastianBergmann\Money\Money::compareTo
  * @uses    \SebastianBergmann\Money\Money::getAmount
  * @uses    \SebastianBergmann\Money\Money::getCurrency
  * @uses    \SebastianBergmann\Money\Currency
  * @depends testCanBeComparedToAnotherMoneyObjectWithSameCurrency
  */
 public function testCanBeComparedToAnotherMoneyObjectWithSameCurrency3()
 {
     $a = new Money(1, new Currency('EUR'));
     $b = new Money(2, new Currency('EUR'));
     $this->assertFalse($b->lessThan($a));
     $this->assertTrue($a->lessThan($b));
 }