Completed
Pull Request — master (#668)
by Dave
02:37
created

ExpectsHigherOrderMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __call() 0 6 1
1
<?php
2
3
namespace Mockery;
4
5
class ExpectsHigherOrderMessage extends HigherOrderMessage
6
{
7 1
    public function __construct(MockInterface $mock)
8
    {
9 1
        return parent::__construct($mock, "shouldReceive");
0 ignored issues
show
Bug introduced by
Constructors do not have meaningful return values, anything that is returned from here is discarded. Are you sure this is correct?
Loading history...
10
    }
11
    /**
12
     * @return Mockery\Expectation
13
     */
14 1
    public function __call($method, $args)
15
    {
16 1
        $expectation = parent::__call($method, $args);
17
18 1
        return $expectation->once();
19
    }
20
}
21