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

TestApplicationTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A creation() 0 5 1
A magentoTestRoot() 0 8 1
A getApplication() 0 6 1
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