add @throws anotation to fix travis PHP_CODESNIFFER warnings

This commit is contained in:
Larry E. Masters 2015-12-13 15:16:49 -06:00
parent 6a68032e0b
commit 894d233fd6
4 changed files with 4 additions and 0 deletions

View file

@ -48,6 +48,7 @@ class ControllerAuthorizeTest extends CakeTestCase {
* testControllerTypeError
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testControllerTypeError() {

View file

@ -450,6 +450,7 @@ class ConfigureTest extends CakeTestCase {
* test reader() throwing exceptions on missing interface.
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testReaderExceptionOnIncorrectClass() {

View file

@ -2909,6 +2909,7 @@ SQL;
* testDropSchemaNoSchema method
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testDropSchemaNoSchema() {

View file

@ -2224,6 +2224,7 @@ class ModelValidationTest extends BaseModelTest {
* Test that type hint exception is thrown
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testValidatorTypehintException() {