Completed
Pull Request — master (#47)
by Maximilian
392:42 queued 327:39
created

AbstractTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory CKEditor package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\CKEditorBundle\Tests;
13
14
use PHPUnit\Framework\TestCase;
15
16
/**
17
 * @author GeLo <[email protected]>
18
 */
19
abstract class AbstractTestCase extends TestCase
20
{
21
    /**
22
     * @param string $originalClassName
23
     *
24
     * @return \PHPUnit_Framework_MockObject_MockObject
25
     */
26
    protected function createMock($originalClassName)
27
    {
28
        if (is_callable('parent::createMock')) {
29
            return parent::createMock($originalClassName);
30
        }
31
32
        return $this->getMock($originalClassName);
33
    }
34
}
35