Completed
Push — master ( b6a852...a7b775 )
by Max
02:15 queued 11s
created

MagicTest::testSimpleCall()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
/*
3
 * @copyright (c) 2018 Mendel <[email protected]>
4
 * @license see license.txt
5
 */
6
namespace drycart\di\tests;
7
use PHPUnit\Framework\TestCase;
8
9
10
/**
11
 * @author mendel
12
 */
13
class MagicTest extends TestCase
14
{
15
    public function testSimpleCall()
16
    {
17
        $magic = dummy\MagicClass::make();
18
        $dummy = $magic->getDummy();
19
        $dummyPlus = $magic->getDummyPlus();
20
        $this->assertTrue(is_a($magic, 'drycart\di\tests\dummy\MAgicClass'));
21
        $this->assertTrue(is_a($dummy, 'drycart\di\tests\dummy\Dummy'));
22
        $this->assertTrue(is_a($dummyPlus, 'drycart\di\tests\dummy\DummyPlusParameter'));
23
    }
24
}
25