Lines Matching refs:int

60         $this->assertNotSame(4242, $INPUT->int('zint'));
61 $this->assertSame(4242, $INPUT->filter()->int('zint'));
62 $this->assertSame(42, $INPUT->filter($filter)->int('zintbaz'));
120 $this->assertSame(17, $INPUT->int('int'));
121 $this->assertSame(0, $INPUT->int('none'));
122 $this->assertSame(0, $INPUT->int('empty'));
123 $this->assertSame(42, $INPUT->int('none', 42));
124 $this->assertSame(0, $INPUT->int('zero', 42));
125 $this->assertSame(42, $INPUT->int('zero', 42, true));
127 $this->assertSame(false, $INPUT->int('get', false));
128 $this->assertSame(false, $INPUT->int('post', false));
130 $this->assertSame(17, $INPUT->post->int('int'));
131 $this->assertSame(0, $INPUT->post->int('none'));
132 $this->assertSame(0, $INPUT->post->int('empty'));
133 $this->assertSame(42, $INPUT->post->int('none', 42));
134 $this->assertSame(0, $INPUT->post->int('zero', 42));
135 $this->assertSame(42, $INPUT->post->int('zero', 42, true));
137 $this->assertSame(false, $INPUT->post->int('get', false));
138 $this->assertSame(1, $INPUT->post->int('post', false));
140 $this->assertSame(17, $INPUT->post->int('int'));
141 $this->assertSame(0, $INPUT->post->int('none'));
142 $this->assertSame(0, $INPUT->post->int('empty'));
143 $this->assertSame(42, $INPUT->post->int('none', 42));
144 $this->assertSame(0, $INPUT->post->int('zero', 42));
145 $this->assertSame(42, $INPUT->post->int('zero', 42, true));
147 $this->assertSame(false, $INPUT->get->int('post', false));
148 $this->assertSame(1, $INPUT->get->int('get', false));
150 $this->assertSame(0, $INPUT->int('array'));
152 $this->assertSame(0, $INPUT->int('zero', -1));
153 $this->assertSame(-1, $INPUT->int('empty', -1));
154 $this->assertSame(-1, $INPUT->int('zero', -1, true));
155 $this->assertSame(-1, $INPUT->int('empty', -1, true));