Completed
Pull Request — master (#598)
by Dave
08:30
created

ExpectationBuilder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Mockery;
4
5
class ExpectationBuilder 
6
{
7
    private $mock;
8
9
    public function __construct(MockInterface $mock)
10
    {
11
        $this->mock = $mock;
12
    }
13
14
    /**
15
     * @return Mockery\Expectation
16
     */
17
    public function __call($method, $args)
18
    {
19
        return $this->mock->shouldReceive($method)->withArgs($args);
20
    }
21
}
22