@@ 78-86 (lines=9) @@ | ||
75 | * @test |
|
76 | * @covers ::in |
|
77 | */ |
|
78 | public function inFailStrict() |
|
79 | { |
|
80 | try { |
|
81 | Arrays::in('0', [0]); |
|
82 | $this->fail(); |
|
83 | } catch (Exception $e) { |
|
84 | $this->assertSame("Value '0' is not in array array (\n 0 => 0,\n)", $e->getMessage()); |
|
85 | } |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * @test |
|
@@ 92-100 (lines=9) @@ | ||
89 | * @test |
|
90 | * @covers ::in |
|
91 | */ |
|
92 | public function inFailNotStrict() |
|
93 | { |
|
94 | try { |
|
95 | Arrays::in('boo', ['foo'], false); |
|
96 | $this->fail(); |
|
97 | } catch (Exception $e) { |
|
98 | $this->assertSame("Value 'boo' is not in array array (\n 0 => 'foo',\n)", $e->getMessage()); |
|
99 | } |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * @test |