Completed
Push — master ( d48601...03ac5e )
by Jeroen De
13s queued 10s
created

MessageReporterAwareTest::getMessageReporter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
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\MessageReporterAware;
6
use Onoi\MessageReporter\MessageReporterAwareTrait;
7
use Onoi\MessageReporter\NullMessageReporter;
8
use PHPUnit\Framework\TestCase;
9
10
/**
11
 * @group onoi-message-reporter
12
 *
13
 * @license GNU GPL v2+
14
 * @since 1.3
15
 *
16
 * @author mwjames
17
 */
18
class MessageReporterAwareTest extends TestCase implements MessageReporterAware {
19
	use MessageReporterAwareTrait;
20
21
	public function testTrait() {
22
23
		$this->setMessageReporter( new NullMessageReporter() );
24
25
		$this->assertInstanceOf(
26
			NullMessageReporter::class,
27
			$this->getMessageReporter()
28
		);
29
	}
30
31
	public function getMessageReporter() {
32
		return $this->messageReporter;
33
	}
34
35
}
36