예제 #1
0
파일: MoneyTest.php 프로젝트: erictho/money
 /**
  * @covers  \SebastianBergmann\Money\Money::lessThanOrEqual
  * @covers  \SebastianBergmann\Money\Money::assertSameCurrency
  * @uses    \SebastianBergmann\Money\Money::__construct
  * @uses    \SebastianBergmann\Money\Money::handleCurrencyArgument
  * @uses    \SebastianBergmann\Money\Money::lessThan
  * @uses    \SebastianBergmann\Money\Money::equals
  * @uses    \SebastianBergmann\Money\Money::compareTo
  * @uses    \SebastianBergmann\Money\Money::getAmount
  * @uses    \SebastianBergmann\Money\Money::getCurrency
  * @uses    \SebastianBergmann\Money\Currency
  * @depends testCanBeComparedToAnotherMoneyObjectWithSameCurrency
  */
 public function testCanBeComparedToAnotherMoneyObjectWithSameCurrency6()
 {
     $a = new Money(1, new Currency('EUR'));
     $b = new Money(1, new Currency('EUR'));
     $c = new Money(2, new Currency('EUR'));
     $this->assertTrue($a->lessThanOrEqual($a));
     $this->assertTrue($a->lessThanOrEqual($b));
     $this->assertTrue($a->lessThanOrEqual($c));
     $this->assertFalse($c->lessThanOrEqual($a));
 }