/** * Expect an exception when the Check type is invalid on evaluation * * @expectedException \InvalidArgumentException */ public function testInvalidType() { $check = new Check('array', null); $test = new TestArray($check); $test->evaluate(null, null); }