Skip to content

Commit 4e1e3a6

Browse files
authored
Merge pull request #142 from stronk7/upgrade_tools
Bump sub-tools to latest releases
2 parents 468155c + fdf09f0 commit 4e1e3a6

File tree

4 files changed

+42
-32
lines changed

4 files changed

+42
-32
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,44 @@
4040
"type": "package",
4141
"package": {
4242
"name": "moodlehq/moodle-local_codechecker",
43-
"version": "3.0.2",
43+
"version": "3.0.4",
4444
"source": {
4545
"url": "https://github.com/moodlehq/moodle-local_codechecker.git",
4646
"type": "git",
47-
"reference": "v3.0.2"
47+
"reference": "v3.0.4"
4848
}
4949
}
5050
},
5151
{
5252
"type": "package",
5353
"package": {
5454
"name": "moodlehq/moodle-local_ci",
55-
"version": "1.0.11",
55+
"version": "1.0.12",
5656
"source": {
5757
"url": "https://github.com/moodlehq/moodle-local_ci.git",
5858
"type": "git",
59-
"reference": "v1.0.11"
59+
"reference": "v1.0.12"
6060
}
6161
}
6262
},
6363
{
6464
"type": "package",
6565
"package": {
6666
"name": "moodlehq/moodle-local_moodlecheck",
67-
"version": "1.0.8",
67+
"version": "1.0.9",
6868
"source": {
6969
"url": "https://github.com/moodlehq/moodle-local_moodlecheck.git",
7070
"type": "git",
71-
"reference": "v1.0.8"
71+
"reference": "v1.0.9"
7272
}
7373
}
7474
}
7575
],
7676
"require": {
7777
"php": ">=7.0.8",
78-
"moodlehq/moodle-local_codechecker": "^3.0.2",
79-
"moodlehq/moodle-local_ci": "^1.0.11",
80-
"moodlehq/moodle-local_moodlecheck": "^1.0.8",
78+
"moodlehq/moodle-local_codechecker": "^3.0.4",
79+
"moodlehq/moodle-local_ci": "^1.0.12",
80+
"moodlehq/moodle-local_moodlecheck": "^1.0.9",
8181
"sebastian/phpcpd": "^3.0",
8282
"phpmd/phpmd": "^2.2",
8383
"symfony/dotenv": "^3.4",

composer.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1111
## [Unreleased]
1212
### Added
1313
- Support for subplugins in the extra-plugins directory for install.
14+
- Support for [`coverage.php`](https://docs.moodle.org/dev/Writing_PHPUnit_tests#Check_your_coverage) files added. Previous coverage defaults only will be applied when that file is not present in the plugin.
15+
16+
### Changed
17+
- Updated project dependencies to current [moodle-local_moodlecheck](https://github.com/moodlehq/moodle-local_moodlecheck) and [moodle-local_ci](https://github.com/moodlehq/moodle-local_ci) versions.
18+
- Updated version of [moodle-local_codechecker](https://github.com/moodlehq/moodle-local_codechecker) to v3.0.4.
19+
- Both Chrome and Firefox are back to use latest Selenium 3 versions, previously pinned because of some interim problems with them.
20+
- GitHub [no longer supports the git:// protocol](https://github.blog/2021-09-01-improving-git-protocol-security-github/). Please change any use to `https://` instead.
21+
- Internal, various improvements to self testing.
1422

1523
## [3.2.1] - 2021-07-30
1624
### Changed
@@ -80,7 +88,7 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
8088

8189
### Changed
8290
- `moodle-plugin-ci phpunit` when coverage report is included, phpdbg is called with ignore memory limits param
83-
to avoid memory exhaused errors.
91+
to avoid memory exhausted errors.
8492
- Updated project dependencies to current [moodle-local_moodlecheck](https://github.com/moodlehq/moodle-local_moodlecheck) and [moodle-local_ci](https://github.com/moodlehq/moodle-local_ci) versions.
8593
- Updated version of [moodle-local_codechecker](https://github.com/moodlehq/moodle-local_codechecker) to v3.0.0.
8694
- Install grunt locally and use `npx grunt` to run it instead of installing it globally.

tests/Fixture/moodle-local_ci/tests/lib_test.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25+
namespace local_ci;
26+
2527
use local_ci\math;
2628

2729
defined('MOODLE_INTERNAL') || die();
@@ -35,7 +37,7 @@
3537
* @copyright Copyright (c) 2015 Blackboard Inc. (http://www.blackboard.com)
3638
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3739
*/
38-
class local_ci_lib_testcase extends basic_testcase {
40+
class lib_test extends \basic_testcase {
3941
/**
4042
* Test addition.
4143
*/
@@ -58,7 +60,7 @@ public function test_local_ci_subtract() {
5860
* Test math class.
5961
*/
6062
public function test_local_ci_math() {
61-
$math = new local_ci_math();
63+
$math = new \local_ci_math();
6264
$this->assertEquals(4, $math->add(2, 2));
6365
$this->assertEquals(2, $math->add(4, -2));
6466
$this->assertEquals(0, $math->add(-4, 4));

0 commit comments

Comments
 (0)