/** * @test * @expectedException RuntimeException * @expectedExceptionMessage tiff is not supported */ public function isValid_throws_RuntimeException_when_type_is_not_supported() { $cc = new CaptchaConfig(array('type' => 'tiff')); $cc->isValid(); }