Completed
Push — master ( 874a77...cf2f4d )
by mw
01:48
created

testCanConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Onoi\CallbackContainer\Tests\Exception;
4
5
use Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException;
6
7
/**
8
 * @covers \Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException
9
 * @group onoi-callback-container
10
 *
11
 * @license GNU GPL v2+
12
 * @since 2.0
13
 *
14
 * @author mwjames
15
 */
16
class ServiceAliasCrossAssignmentExceptionTest extends \PHPUnit_Framework_TestCase {
17
18
	public function testCanConstruct() {
19
20
		$this->assertInstanceOf(
21
			'\Onoi\CallbackContainer\Exception\ServiceAliasCrossAssignmentException',
22
			new ServiceAliasCrossAssignmentException( 'foo', 'Bar', 'Foobar' )
23
		);
24
25
		$this->assertInstanceOf(
26
			'\RuntimeException',
27
			new ServiceAliasCrossAssignmentException( 'foo', 'Bar', 'Foobar' )
28
		);
29
	}
30
31
}
32