Esempio n. 1
0
 /**
  * Verify fromArray throws when input is invalid.
  *
  * @test
  * @expectedException \Exception
  *
  * @return void
  */
 public function fromArrayWithInvalidInput()
 {
     Price::fromArray(['type' => 'a type', 'price' => 'price not a float']);
 }