Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function createMockWithExpectations( |
||
25 | string $className, |
||
26 | array $expects = [], |
||
27 | array $constructorArgs = null) : PHPUnit_Framework_MockObject_MockObject |
||
28 | { |
||
29 | $expectations = $this->expectationsFactory->createExpectations($expects); |
||
30 | $expectedMethods = $expectations->getExpectedMethods(); |
||
31 | $mock = $this->mockFactory->newPartialMock($className, $expectedMethods, $constructorArgs); |
||
32 | $expectations->set($mock); |
||
33 | |||
34 | return $mock; |
||
35 | } |
||
57 |