Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — master (#958)
by Dan
05:49
created

PhpFileInspectionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_all_files_use_strict_type() 0 6 1
A test_all_files_pass_phplint() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace SmrTest;
4
5
use PHPUnit\Framework\TestCase;
6
7
class PhpFileInspectionTest extends TestCase {
8
9
	public function test_all_files_use_strict_type() {
10
		$exit_code = 1;
11
		$output = [];
12
		exec(ROOT . 'test/strict_types.sh', $output, $exit_code);
13
		$this->assertSame(0, $exit_code, join("\n", $output));
14
		$this->assertEquals(end($output), 'Success! No strict_type errors.');
15
	}
16
17
	public function test_all_files_pass_phplint() {
18
		$exit_code = 1;
19
		$output = [];
20
		exec(ROOT . 'test/phplint.sh', $output, $exit_code);
21
		$this->assertSame(0, $exit_code, join("\n", $output));
22
		$this->assertEquals(end($output), 'Success! No linting errors.');
23
	}
24
25
}
26