Skip to content

Commit

Permalink
add @throws anotation to fix travis PHP_CODESNIFFER warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry E. Masters committed Dec 13, 2015
1 parent 6a68032 commit 894d233
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Expand Up @@ -48,6 +48,7 @@ public function setUp() {
* testControllerTypeError
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testControllerTypeError() {
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Core/ConfigureTest.php
Expand Up @@ -450,6 +450,7 @@ public function testReaderSetup() {
* test reader() throwing exceptions on missing interface.
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testReaderExceptionOnIncorrectClass() {
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
Expand Up @@ -2909,6 +2909,7 @@ public function testSchema() {
* testDropSchemaNoSchema method
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testDropSchemaNoSchema() {
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Model/ModelValidationTest.php
Expand Up @@ -2224,6 +2224,7 @@ public function testValidatorOverride() {
* Test that type hint exception is thrown
*
* @expectedException PHPUnit_Framework_Error
* @throws PHPUnit_Framework_Error
* @return void
*/
public function testValidatorTypehintException() {
Expand Down

0 comments on commit 894d233

Please sign in to comment.