AppTest::testApp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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