These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace OpenOrchestra\FunctionalTests\Mapping\Metadata\Driver; |
||
4 | |||
5 | use Metadata\Driver\FileLocator; |
||
6 | use OpenOrchestra\Mapping\Metadata\Driver\YamlDriver; |
||
7 | |||
8 | /** |
||
9 | * Class YamlDriverTest |
||
10 | */ |
||
11 | View Code Duplication | class YamlDriverTest extends AbstractDriverTest |
|
0 ignored issues
–
show
|
|||
12 | { |
||
13 | /** |
||
14 | * Set Up |
||
15 | */ |
||
16 | public function setUp() |
||
17 | { |
||
18 | parent::setUp(); |
||
19 | $dirs = array('OpenOrchestra\FunctionalTests\Mapping\Metadata\Driver\FakeClass' => __DIR__ . '/yml'); |
||
20 | $fileLocator = new FileLocator($dirs); |
||
21 | |||
22 | $this->driver = new YamlDriver($fileLocator, |
||
23 | $this->propertySearchMetadataFactory, |
||
24 | $this->mergeableClassMetadataFactory |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Test LoadMetadataForClass |
||
30 | */ |
||
31 | public function testLoadMetadataForClass() |
||
32 | { |
||
33 | $this->markTestSkipped('Problem with Travis builds'); |
||
34 | } |
||
35 | } |
||
36 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.