Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testToArray(): void |
||
13 | { |
||
14 | $trend = (new Trend()) |
||
15 | ->setPeriod('0m') |
||
16 | ->setStrongBuy(1) |
||
17 | ->setBuy(2) |
||
18 | ->setHold(3) |
||
19 | ->setSell(4) |
||
20 | ->setStrongSell(5); |
||
21 | |||
22 | self::assertEquals([ |
||
23 | 'period' => '0m', |
||
24 | 'strongBuy' => 1, |
||
25 | 'buy' => 2, |
||
26 | 'hold' => 3, |
||
27 | 'sell' => 4, |
||
28 | 'strongSell' => 5, |
||
29 | ], $trend->toArray()); |
||
30 | } |
||
32 |