1 | <?php |
||
8 | class ArrayKeysExistTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @test |
||
12 | */ |
||
13 | public function it_returns_true_when_all_array_keys_exist() |
||
17 | /** |
||
18 | * @test |
||
19 | */ |
||
20 | public function it_doesnt_treat_values_as_keys() |
||
21 | { |
||
22 | $this->assertFalse(array_keys_exist(['a', 'b'], ['a', 'b', 'c'])); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @test |
||
27 | */ |
||
28 | public function it_returns_false_when_not_all_needles_are_present_in_haystack() |
||
32 | |||
33 | /** |
||
34 | * @test |
||
35 | */ |
||
36 | public function it_returns_true_for_empty_arrays() |
||
40 | |||
41 | /** |
||
42 | * @test |
||
43 | */ |
||
44 | public function it_returns_true_for_empty_needles() |
||
48 | |||
49 | /** |
||
50 | * @test |
||
51 | */ |
||
52 | public function it_returns_false_for_searching_for_needles_in_an_empty_haystack() |
||
56 | |||
57 | /** |
||
58 | * @test |
||
59 | */ |
||
60 | public function it_returns_true_when_a_single_array_key_exists() |
||
65 | |||
66 | /** |
||
67 | * @test |
||
68 | */ |
||
69 | public function it_returns_false_when_needle_is_not_present_in_haystack() |
||
74 | } |
||
75 |