Completed
Pull Request — develop (#243)
by Tom
20:40 queued 07:41
created

TestApplicationTest::getApplication()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/*
3
 * this file is part of magerun
4
 *
5
 * @author Tom Klingenberg <https://github.com/ktomk>
6
 */
7
8
namespace N98\Magento;
9
10
class TestApplicationTest extends \PHPUnit_Framework_TestCase
11
{
12
    /**
13
     * @test
14
     */
15
    public function creation()
16
    {
17
        $application = new TestApplication();
18
        $this->assertInstanceOf(TestApplication::class, $application);
19
    }
20
21
    /**
22
     * @test
23
     */
24
    public function magentoTestRoot()
25
    {
26
        $application = new TestApplication();
27
        $actual = $application->getTestMagentoRoot();
28
        $this->assertInternalType('string', $actual);
29
        $this->assertGreaterThan(10, strlen($actual));
30
        $this->assertTrue(is_dir($actual));
31
    }
32
33
    /**
34
     * @test
35
     */
36
    public function getApplication()
37
    {
38
        $application = new TestApplication();
39
        $actual = $application->getApplication();
40
        $this->assertInstanceOf(Application::class, $actual);
41
    }
42
}
43