コード例 #1
0
ファイル: NumberTest.php プロジェクト: codefog/contao-haste
 /**
  * @dataProvider createExceptionProvider
  * @expectedException InvalidArgumentException
  */
 public function testCreateExceptions($data)
 {
     Number::create($data);
 }
コード例 #2
0
ファイル: Number.php プロジェクト: codefog/contao-haste
 /**
  * Check if less than another Number instance
  *
  * @param \Haste\Number\Number
  *
  * @return bool
  */
 public function lessThan(\Haste\Number\Number $objToCompare)
 {
     return $this->getAmount() < $objToCompare->getAmount();
 }