| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testBuildFromArray() |
||
| 11 | { |
||
| 12 | $source = Source::buildFromArray([ |
||
| 13 | 'type' => 'git', |
||
| 14 | 'url' => '[email protected]:vendor/project.git', |
||
| 15 | 'reference' => '6a6e0ea9479c821d4b5728c0d3c9840e71085e82', |
||
| 16 | ]); |
||
| 17 | |||
| 18 | $sourceArray = $source->_toArray(); |
||
| 19 | |||
| 20 | $this->assertEquals('git', $sourceArray['type']); |
||
| 21 | $this->assertEquals('[email protected]:vendor/project.git', $sourceArray['url']); |
||
| 22 | $this->assertEquals('6a6e0ea9479c821d4b5728c0d3c9840e71085e82', $sourceArray['reference']); |
||
| 23 | } |
||
| 25 |