*/
public static function mockHook() {
$args = func_get_args();
- if( !$args[0] instanceof MWException ) {
+ if ( !$args[0] instanceof MWException ) {
return '$caller not instance of MWException';
}
unset( $args[0] );
- if( array_key_exists( 1, $args ) && $args[1] === null ) {
+ if ( array_key_exists( 1, $args ) && $args[1] === null ) {
return null;
}
return 'YAY.' . json_encode( $args );
*
* @covers MWExceptionHandler::jsonSerializeException
*
- * @param $expectedKeyType String Type expected as returned by gettype()
- * @param $exClass String An exception class (ie: Exception, MWException)
- * @param $key String Name of the key to validate in the serialized JSON
+ * @param string $expectedKeyType Type expected as returned by gettype()
+ * @param string $exClass An exception class (ie: Exception, MWException)
+ * @param string $key Name of the key to validate in the serialized JSON
* @dataProvider provideJsonSerializedKeys
*/
public function testJsonserializeexceptionKeys( $expectedKeyType, $exClass, $key ) {