ZfTestCaseAwareInitializerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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