Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace BuildR\TestTools\DataSetLoader\XML; |
||
43 | 5 | public function __construct($file, XMLDefinitionParserInterface $parser = NULL) { |
|
44 | 5 | $this->file = $file; |
|
45 | 5 | $this->parser = $parser; |
|
46 | |||
47 | 5 | if($this->parser === NULL) { |
|
48 | 5 | $this->parser = new StandardXMLDefinitionParser(); |
|
49 | 5 | } |
|
50 | |||
51 | 5 | $this->load(); |
|
52 | 5 | } |
|
53 | |||
81 |