Completed
Push — v3.0 ( 6b6267...72438c )
by Jáchym
08:19
created

testEnsureEventDispatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Zenify\DoctrineMigrations\Tests\DI\MigrationsExtension;
4
5
use PHPUnit_Framework_TestCase;
6
use Zenify\DoctrineMigrations\Exception\DI\MissingExtensionException;
7
use Zenify\DoctrineMigrations\Tests\ContainerFactory;
8
9
10
final class EnsureRequiredExtensionsTest extends PHPUnit_Framework_TestCase
11
{
12
13
	public function testEnsureEventDispatcher()
14
	{
15
		$this->setExpectedException(MissingExtensionException::class);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit_Framework_TestCase::setExpectedException() has been deprecated with message: Method deprecated since Release 5.2.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
16
		(new ContainerFactory)->createWithConfig(__DIR__ . '/../../config/extensionOnly.neon');
17
	}
18
19
}
20