mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
add @throws anotation to fix travis PHP_CODESNIFFER warnings
This commit is contained in:
parent
6a68032e0b
commit
894d233fd6
4 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ class ControllerAuthorizeTest extends CakeTestCase {
|
|||
* testControllerTypeError
|
||||
*
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
* @throws PHPUnit_Framework_Error
|
||||
* @return void
|
||||
*/
|
||||
public function testControllerTypeError() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -2909,6 +2909,7 @@ SQL;
|
|||
* testDropSchemaNoSchema method
|
||||
*
|
||||
* @expectedException PHPUnit_Framework_Error
|
||||
* @throws PHPUnit_Framework_Error
|
||||
* @return void
|
||||
*/
|
||||
public function testDropSchemaNoSchema() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue