/** * testAddInputTypeException method * * @expectedException \Cake\Core\Exception\Exception * @return void */ public function testAddInputTypeException() { $restore = error_reporting(E_ALL & ~E_USER_DEPRECATED); $this->RequestHandler->addInputType('csv', ['I am not callable']); error_reporting($restore); }
/** * testAddInputTypeException method * * @expectedException \Cake\Core\Exception\Exception * @return void */ public function testAddInputTypeException() { $this->RequestHandler->addInputType('csv', ['I am not callable']); }