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

ExpectsHigherOrderMessage::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 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