HiSiteTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * HiDev config for HiSite
4
 *
5
 * @link      https://github.com/hiqdev/hidev-hisite
6
 * @package   hidev-hisite
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\hisite\tests\functional;
12
13
use hidev\tests\functional\Tester;
14
15
class HiSiteTest extends \PHPUnit_Framework_TestCase
16
{
17
    /**
18
     * @var \FunctionalTester
19
     */
20
    protected $tester;
21
22
    protected function setUp()
23
    {
24
        $this->tester = new Tester($this);
25
        $this->tester->clean = true;
26
    }
27
28
    protected function tearDown()
29
    {
30
        $this->tester = null;
31
    }
32
33
    public function testMinimal()
34
    {
35
        $this->tester->config(__DIR__ . '/minimal/.hidev/config.yml');
36
        $this->tester->hidev('hisite');
37
        $this->tester->assertFiles(__DIR__ . '/minimal', ['src', 'web']);
38
    }
39
}
40