AppTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testApp() 0 7 1
1
<?php
2
/**
3
 * Push notification server example (http://github.com/juliangut/tify_example)
4
 *
5
 * @link https://github.com/juliangut/tify_example for the canonical source repository
6
 *
7
 * @license https://github.com/juliangut/tify_example/blob/master/LICENSE
8
 */
9
10
namespace Jgut\Pusher\Tests;
11
12
use Doctrine\ORM\EntityManager;
13
use Jgut\Pusher\App;
14
15
/**
16
 * Class AppTest
17
 */
18
class AppTest extends \PHPUnit_Framework_TestCase
19
{
20
    public function testApp()
21
    {
22
        $container = (new App())->getContainer();
23
24
        self::assertTrue($container->get('settings')['displayErrorDetails']);
25
        self::assertInstanceOf(EntityManager::class, $container->get('entityManager'));
26
    }
27
}
28