Example #1
0
 /**
  * Verify fromArrays throws when input is invalid.
  *
  * @test
  * @expectedException \Exception
  *
  * @return void
  */
 public function fromArraysWithInvalidInput()
 {
     Price::fromArrays([['type' => 'a type', 'price' => 1.0], ['type' => '', 'price' => 2.0]]);
 }