test_it_can_initialize_the_context()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the Noiselabs ZfTestCase Behat Extension.
4
 *
5
 * (c) Vítor Brandão <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Noiselabs\Behat\ZfTestCaseExtensionTest\Context\Initializer;
12
13
use Noiselabs\Behat\ZfTestCaseExtension\Context\Initializer\ZfTestCaseAwareInitializer;
14
use Noiselabs\Behat\ZfTestCaseExtension\Context\ZfTestCaseContext;
15
use Noiselabs\Behat\ZfTestCaseExtension\TestCase\HttpControllerTestCase;
16
use PHPUnit\Framework\TestCase;
17
18
/**
19
 * @group unit
20
 */
21
class ZfTestCaseAwareInitializerTest extends TestCase
22
{
23
    public function test_it_can_initialize_the_context()
24
    {
25
        $context = new ZfTestCaseContext();
26
        $initializer = new ZfTestCaseAwareInitializer(new HttpControllerTestCase());
27
28
        $initializer->initializeContext($context);
29
        $this->addToAssertionCount(1);
30
    }
31
}
32