Skip to content

Commit d15a0c6

Browse files
committed
Bump to codechecker v3.1.0
1 parent b080640 commit d15a0c6

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

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)