Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/backup/util/settings/simpletest/testsettings.php File Reference

Go to the source code of this file.

Data Structures

class  setting_test
class  mock_base_setting
class  mock_backup_setting
class  mock_activity_backup_setting
class  mock_section_backup_setting
class  mock_course_backup_setting

Namespaces

namespace  moodlecore

Functions

 backup_setting_error_handler ($errno, $errstr, $errfile, $errline, $errcontext)

Variables

 if (!defined('MOODLE_INTERNAL'))

Function Documentation

backup_setting_error_handler ( errno,
errstr,
errfile,
errline,
errcontext 
)

This error handler is used to convert errors to excpetions so that simepltest can catch them.

This is required in order to catch type hint mismatches that result in a error being thrown. It should only ever be used to catch E_RECOVERABLE_ERROR's.

It throws a backup_setting_exception with 'incorrect_object_passed'

Parameters:
int$errnoE_RECOVERABLE_ERROR
string$errstr
string$errfile
int$errline
array$errcontext
Returns:
null

Definition at line 445 of file testsettings.php.


Variable Documentation

if(!defined('MOODLE_INTERNAL'))

Definition at line 26 of file testsettings.php.

 All Data Structures Namespaces Files Functions Variables Enumerations