Exemplo n.º 1
0
 /**
  * @covers            \SebastianBergmann\Money\Money::allocateToTargets
  * @uses              \SebastianBergmann\Money\Money::__construct
  * @uses              \SebastianBergmann\Money\Money::handleCurrencyArgument
  * @uses              \SebastianBergmann\Money\Currency
  * @expectedException \SebastianBergmann\Money\InvalidArgumentException
  */
 public function testExceptionIsRaisedWhenTryingToAllocateToInvalidNumberOfTargets()
 {
     $a = new Money(0, new Currency('EUR'));
     $a->allocateToTargets(null);
 }