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

ExpectationBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __call() 0 4 1
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