Lines Matching refs:bool
65 $this->assertSame(true, $INPUT->bool('znull'));
66 $this->assertSame(false, $INPUT->filter()->bool('znull'));
205 $this->assertSame(true, $INPUT->bool('one'));
206 $this->assertSame(false, $INPUT->bool('zero'));
208 $this->assertSame(false, $INPUT->bool('get'));
209 $this->assertSame(false, $INPUT->bool('post'));
211 $this->assertSame(true, $INPUT->post->bool('one'));
212 $this->assertSame(false, $INPUT->post->bool('zero'));
214 $this->assertSame(false, $INPUT->post->bool('get'));
215 $this->assertSame(true, $INPUT->post->bool('post'));
217 $this->assertSame(false, $INPUT->bool('zero', -1));
218 $this->assertSame(-1, $INPUT->bool('empty', -1));
219 $this->assertSame(-1, $INPUT->bool('zero', -1, true));
220 $this->assertSame(-1, $INPUT->bool('empty', -1, true));