NullMessageReporterTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 20
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testCanConstruct() 0 7 1
A testReportMessage() 0 8 1
1
<?php
2
3
namespace Onoi\MessageReporter\Tests\Unit;
4
5
use Onoi\MessageReporter\NullMessageReporter;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * @covers \Onoi\MessageReporter\NullMessageReporter
10
 * @group onoi-message-reporter
11
 *
12
 * @since 1.0
13
 *
14
 * @license GNU GPL v2+
15
 * @author mwjames
16
 */
17
class NullMessageReporterTest extends TestCase {
18
19
	public function testCanConstruct() {
20
21
		$this->assertInstanceOf(
22
			'\Onoi\MessageReporter\NullMessageReporter',
23
			new NullMessageReporter()
24
		);
25
	}
26
27
	public function testReportMessage() {
28
29
		$instance = new NullMessageReporter();
30
31
		$this->assertNull(
32
			$instance->reportMessage( 'foo' )
33
		);
34
	}
35
36
}
37