BannerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_banner_returns_proper_identifier() 0 3 1
1
<?php
2
3
declare( strict_types = 1 );
4
5
namespace WMDE\BannerServer\Tests\Unit\Entity\BannerSelection;
6
7
use PHPUnit\Framework\Attributes\CoversClass;
0 ignored issues
show
Bug introduced by
The type PHPUnit\Framework\Attributes\CoversClass 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...
8
use PHPUnit\Framework\TestCase;
9
use WMDE\BannerServer\Entity\BannerSelection\Banner;
10
11
#[CoversClass( Banner::class )]
12
class BannerTest extends TestCase {
13
14
	private const BANNER_TEST_IDENTIFIER = 'testIdentifier';
15
16
	public function test_banner_returns_proper_identifier(): void {
17
		$banner = new Banner( self::BANNER_TEST_IDENTIFIER );
18
		$this->assertEquals( self::BANNER_TEST_IDENTIFIER, $banner->getIdentifier() );
19
	}
20
}
21