Completed
Push — develop ( 6cf259...ffe009 )
by Mike
07:35
created

ConfigureTest::testInvokeOverridesConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
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
 *  @copyright 2010-2017 Mike van Riel<[email protected]>
9
 *  @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 *  @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\Application\Stage;
14
15
use phpDocumentor\Application\Configuration\Configuration;
16
use phpDocumentor\Application\Configuration\ConfigurationFactory;
17
use phpDocumentor\Application\Configuration\Factory\Version2;
18
use phpDocumentor\Application\Configuration\Factory\Version3;
19
use PHPUnit\Framework\TestCase;
20
21
/**
22
 * @coversDefaultClass \phpDocumentor\Application\Stage\Configure
23
 */
24
class ConfigureTest extends TestCase
25
{
26
    /**
27
     * @use \phpDocumentor\Application\Configuration\ConfigurationFactory;
28
     * @use \phpDocumentor\Application\Configuration\Factory\Version3;
29
     * @use \phpDocumentor\DomainModel\Uri;
30
     */
31
    public function testInvokeOverridesConfig()
32
    {
33
        $configFactory = new ConfigurationFactory([], []);
34
35
        $fixture = new Configure($configFactory, $configFactory->fromDefaultLocations());
36
37
        $result = $fixture(['force' => true]);
38
39
        $this->assertFalse($result['phpdocumentor']['use-cache']);
40
    }
41
}
42