PromiseDeferredAsDeferredTests   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A newDefaultTestedInstance() 0 8 1
A getTestedClassName() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Cubiche package.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Cubiche\Core\Async\Tests\Units\Promise;
13
14
use Cubiche\Core\Async\Promise\PromiseDeferred;
15
16
/**
17
 * Promise Deferred As Deferred Tests class.
18
 *
19
 * @author Ivannis Suárez Jerez <[email protected]>
20
 * @author Karel Osorio Ramírez <[email protected]>
21
 */
22
class PromiseDeferredAsDeferredTests extends DeferredInterfaceTestCase
23
{
24
    /**
25
     * @return object
26
     */
27
    public function newDefaultTestedInstance()
28
    {
29
        /** @var \Cubiche\Core\Async\Promise\PromiseDeferred $instance */
30
        $instance = parent::newDefaultTestedInstance();
31
        $instance->then();
32
33
        return $instance;
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getTestedClassName()
40
    {
41
        return PromiseDeferred::class;
42
    }
43
}
44