1 | <?php |
||
8 | class ArrayRandWeightedTest extends TestCase |
||
9 | { |
||
10 | protected $testArray = [ |
||
11 | 'foo' => 1, |
||
12 | 'bar' => 1, |
||
13 | 'baz' => 4, |
||
14 | ]; |
||
15 | |||
16 | /** |
||
17 | * @test |
||
18 | */ |
||
19 | public function it_can_handle_an_empty_array() |
||
23 | |||
24 | /** |
||
25 | * @test |
||
26 | */ |
||
27 | public function it_retrieves_a_value_from_the_array() |
||
31 | |||
32 | /** |
||
33 | * @test |
||
34 | */ |
||
35 | public function it_is_safe_to_assume_the_result_is_weighted() |
||
47 | } |
||
48 |