Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
MergeStrategy | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
mock | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
<?php | |
/** | |
* Copyright (c) Tony Bogdanov <support@tonybogdanov.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace TonyBogdanov\MockableAnnotations\MockProvider\MethodMockProvider\Strategy; | |
use ReflectionMethod; | |
/** | |
* Class MergeStrategy | |
* | |
* @package TonyBogdanov\MockableAnnotations\MockProvider\MethodMockProvider\Strategy | |
*/ | |
class MergeStrategy implements StrategyInterface { | |
/** | |
* @param ReflectionMethod $method | |
* @param array $annotations | |
* @param array $mockedAnnotations | |
* | |
* @return array | |
*/ | |
public function mock( ReflectionMethod $method, array $annotations, array $mockedAnnotations ): array { | |
return array_merge( $annotations, $mockedAnnotations ); | |
} | |
} |