Failed Conditions
Branch try/acceptance-tests (7c347f)
by Atanas
02:43
created

ExampleTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testHome() 0 4 1
A testGet() 0 4 1
1
<?php
2
/**
3
 * Example test class
4
 *
5
 * @package wpacceptance
6
 */
7
8
/**
9
 * PHPUnit test class
10
 */
11
class ExampleTest extends \WPAcceptance\PHPUnit\TestCase {
0 ignored issues
show
Bug introduced by
The type WPAcceptance\PHPUnit\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
	public function testHome() {
13
		$I = $this->openBrowserPage();
14
		$I->moveTo('/');
15
		$I->seeText('acceptance:index');
16
	}
17
18
	public function testGet() {
19
		$I = $this->openBrowserPage();
20
		$I->moveTo('/hook');
21
		$I->seeText('acceptance:/hook');
22
	}
23
}
24