Completed
Push — master ( 298e09...565401 )
by Ivannis Suárez
02:36
created

PromiseDeferredAsDeferredTests   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

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
namespace Cubiche\Core\Async\Tests\Units\Promise;
12
13
use Cubiche\Core\Async\Promise\PromiseDeferred;
14
15
/**
16
 * Promise Deferred As Deferred Tests class.
17
 *
18
 * @author Ivannis Suárez Jerez <[email protected]>
19
 * @author Karel Osorio Ramírez <[email protected]>
20
 */
21
class PromiseDeferredAsDeferredTests extends DeferredInterfaceTestCase
22
{
23
    /**
24
     * @return object
25
     */
26
    public function newDefaultTestedInstance()
27
    {
28
        /** @var \Cubiche\Core\Async\Promise\PromiseDeferred $instance */
29
        $instance = parent::newDefaultTestedInstance();
30
        $instance->then();
31
32
        return $instance;
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function getTestedClassName()
39
    {
40
        return PromiseDeferred::class;
41
    }
42
}
43