Passed
Pull Request — master (#59)
by Raúl
04:00
created

AbstractTest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Test\Pagantis\OrdersApiClient;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * Class AbstractTest
9
 * @package Test\Pagantis\OrdersApiClient
10
 */
11
abstract class AbstractTest extends TestCase
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $resourcePath;
17
18
    /**
19
     * AbstractTest constructor.
20
     *
21
     * @param null   $name
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $name is correct as it would always require null to be passed?
Loading history...
22
     * @param array  $data
23
     * @param string $dataName
24
     */
25
    public function __construct($name = null, array $data = array(), $dataName = '')
26
    {
27
        $this->resourcePath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR;
28
        parent::__construct($name, $data, $dataName);
29
    }
30
}
31