Skip to content

Commit f026a41

Browse files
authored
Merge pull request #162 from kabalin/bump_codechecker_310
Bump to codechecker v3.1.0
2 parents b080640 + fc79de6 commit f026a41

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ jobs:
5353
moodle-branch: 'MOODLE_39_STABLE'
5454
- php: '7.4'
5555
moodle-branch: 'MOODLE_38_STABLE'
56-
- php: '7.2'
57-
moodle-branch: 'MOODLE_35_STABLE'
58-
- php: '7.0'
59-
moodle-branch: 'MOODLE_35_STABLE'
6056

6157
steps:
6258
- name: Check out repository code

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,3 @@ jobs:
8181
env: MOODLE_BRANCH=MOODLE_39_STABLE
8282
- php: 7.4
8383
env: MOODLE_BRANCH=MOODLE_38_STABLE
84-
- php: 7.2
85-
env: MOODLE_BRANCH=MOODLE_35_STABLE
86-
- php: 7.0
87-
env: MOODLE_BRANCH=MOODLE_35_STABLE

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
"type": "package",
4141
"package": {
4242
"name": "moodlehq/moodle-local_codechecker",
43-
"version": "3.0.6",
43+
"version": "3.1.0",
4444
"source": {
4545
"url": "https://github.com/moodlehq/moodle-local_codechecker.git",
4646
"type": "git",
47-
"reference": "v3.0.6"
47+
"reference": "v3.1.0"
4848
}
4949
}
5050
},
@@ -75,7 +75,7 @@
7575
],
7676
"require": {
7777
"php": ">=7.0.8",
78-
"moodlehq/moodle-local_codechecker": "^3.0.6",
78+
"moodlehq/moodle-local_codechecker": "^3.1",
7979
"moodlehq/moodle-local_ci": "^1.0.12",
8080
"moodlehq/moodle-local_moodlecheck": "^1.0.9",
8181
"sebastian/phpcpd": "^3.0",

composer.lock

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

tests/Command/CodeCheckerCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function testExecuteFail()
8888
$output = $this->getActualOutput();
8989
$this->assertRegExp('/E\.* 8\.* \/ 8 \(100%\)/', $output); // Progress.
9090
$this->assertRegExp('/\/fixable.php/', $output); // File.
91-
$this->assertRegExp('/ (4|5) ERRORS AND 2 WARNINGS AFFECTING 6 /', $output); // Summary (php70 shows one less)
91+
$this->assertRegExp('/ (4|5) ERRORS AND (1|2) WARNINGS? AFFECTING 6 /', $output); // Summary (php70 shows one less)
9292
$this->assertRegexp('/moodle\.Files\.BoilerplateComment\.Wrong/', $output); // Moodle sniff.
9393
$this->assertRegexp('/print_object\(\) is forbidden/', $output); // Moodle sniff.
9494
$this->assertRegexp('/FunctionUse\.RemovedFunctions\.ldap_sort/', $output); // PHPCompatibility sniff.

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
class lib_test extends \basic_testcase {
4141
/**
4242
* Test addition.
43+
*
44+
* @covers ::local_ci_add
4345
*/
4446
public function test_local_ci_add() {
4547
$this->assertEquals(4, local_ci_add(2, 2));
@@ -49,6 +51,8 @@ public function test_local_ci_add() {
4951

5052
/**
5153
* Test subtraction.
54+
*
55+
* @covers ::local_ci_substract
5256
*/
5357
public function test_local_ci_subtract() {
5458
$this->assertEquals(0, local_ci_subtract(2, 2));
@@ -58,6 +62,8 @@ public function test_local_ci_subtract() {
5862

5963
/**
6064
* Test math class.
65+
*
66+
* @covers \local_ci\math\add
6167
*/
6268
public function test_local_ci_math() {
6369
$math = new \local_ci_math();
@@ -68,6 +74,8 @@ public function test_local_ci_math() {
6874

6975
/**
7076
* Test math class.
77+
*
78+
* @covers \local_ci\math\add
7179
*/
7280
public function test_local_ci_math_class() {
7381
$math = new math();

0 commit comments

Comments
 (0)