Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testToSimpleArray() |
||
12 | { |
||
13 | $asset = new Asset('foo', 'package/a', 'vendor/package/a', 0.0, null); |
||
14 | |||
15 | $this->assertSame('foo', $asset->toSimpleArray()); |
||
16 | |||
17 | $asset = new Asset('foo', 'package/a', 'vendor/package/a', 1.0, ['bar' => 'baz']); |
||
18 | |||
19 | $this->assertSame([ |
||
20 | 'value' => 'foo', |
||
21 | 'priority' => 1.0, |
||
22 | 'metadata' => ['bar' => 'baz'] |
||
23 | ], $asset->toSimpleArray()); |
||
24 | } |
||
26 |