Completed
Push — develop ( 3c5fcd...7858d8 )
by Jaap
07:48
created

ApplicationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetLongVersion() 0 8 1
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author    Mike van Riel <[email protected]>
9
 * @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
10
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
11
 * @link      http://phpdoc.org
12
 */
13
14
namespace phpDocumentor\Application\Console;
15
16
use Mockery\Adapter\Phpunit\MockeryTestCase;
17
use Mockery as m;
18
use Symfony\Component\HttpKernel\KernelInterface;
19
20
/**
21
 * @coversDefaultClass \phpDocumentor\Application\Console\Application
22
 * @covers ::<private>
23
 */
24
class ApplicationTest extends MockeryTestCase
25
{
26
    /**
27
     * @covers ::__construct
28
     * @covers ::getLongVersion
29
     */
30
    public function testGetLongVersion(): void
31
    {
32
        $kernelMock = m::mock(KernelInterface::class);
33
        $kernelMock->shouldIgnoreMissing();
34
        $feature = new Application($kernelMock);
35
36
        self::assertRegExp('~phpDocumentor <info>v(\d).(\d).(\d|x)?-(.*)</info>~', $feature->getLongVersion());
37
    }
38
}
39