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

EnsureRequiredExtensionsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testEnsureEventDispatcher() 0 5 1
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