Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 23... Línea 23...
23
 *
23
 *
24
 * @package core_calendar
24
 * @package core_calendar
25
 * @copyright 2017 Cameron Ball <cameron@cameron1729.xyz>
25
 * @copyright 2017 Cameron Ball <cameron@cameron1729.xyz>
26
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
28
class std_proxy_test extends \advanced_testcase {
28
final class std_proxy_test extends \advanced_testcase {
29
    /**
29
    /**
30
     * @var \stdClass[] $objects Array of objects to proxy.
30
     * @var \stdClass[] $objects Array of objects to proxy.
31
     */
31
     */
32
    public $objects;
32
    public $objects;
Línea 33... Línea 33...
33
 
33
 
-
 
34
    public function setUp(): void {
34
    public function setUp(): void {
35
        parent::setUp();
35
        $this->objects = [
36
        $this->objects = [
36
            1 => (object) [
37
            1 => (object) [
37
                'member1' => 'Hello',
38
                'member1' => 'Hello',
38
                'member2' => 1729,
39
                'member2' => 1729,
Línea 113... Línea 114...
113
    }
114
    }
Línea 114... Línea 115...
114
 
115
 
115
    /**
116
    /**
116
     * Test cases for proxying test.
117
     * Test cases for proxying test.
117
     */
118
     */
118
    public function proxy_testcases() {
119
    public static function proxy_testcases(): array {
119
        return [
120
        return [
120
            'Object 1 member 1' => [
121
            'Object 1 member 1' => [
121
                1,
122
                1,
122
                'member1',
123
                'member1',
Línea 151... Línea 152...
151
    }
152
    }
Línea 152... Línea 153...
152
 
153
 
153
    /**
154
    /**
154
     * Test cases for getting and setting tests.
155
     * Test cases for getting and setting tests.
155
     */
156
     */
156
    public function get_set_testcases() {
157
    public static function get_set_testcases(): array {
157
        return [
158
        return [
158
            'Object 1' => [1],
159
            'Object 1' => [1],
159
            'Object 2' => [5]
160
            'Object 2' => [5]
160
        ];
161
        ];