NullMessageReporterTest::testCanConstruct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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