Lines Matching refs:str
48 $this->assertNotSame('foobar', $INPUT->str('zstring'));
49 $this->assertSame('foobar', $INPUT->filter()->str('zstring'));
50 $this->assertSame('bar', $INPUT->filter($filter)->str('foo'));
51 $this->assertSame('bar', $INPUT->filter()->str('znull', 'bar', true));
52 … $this->assertNotSame('foobar', $INPUT->str('zstring')); // make sure original input is unmodified
54 $this->assertNotSame('foobar', $INPUT->get->str('zstring'));
55 $this->assertSame('foobar', $INPUT->get->filter()->str('zstring'));
56 $this->assertSame('bar', $INPUT->get->filter($filter)->str('foo'));
57 $this->assertSame('bar', $INPUT->get->filter()->str('znull', 'bar', true));
58 …$this->assertNotSame('foobar', $INPUT->get->str('zstring')); // make sure original input is unmodi…
63 $this->assertSame(42, $INPUT->filter()->str('znull', 42, true));
79 $this->assertSame('foo', $INPUT->str('string'));
80 $this->assertSame('', $INPUT->str('none'));
81 $this->assertSame('', $INPUT->str('empty'));
82 $this->assertSame('foo', $INPUT->str('none', 'foo'));
83 $this->assertSame('', $INPUT->str('empty', 'foo'));
84 $this->assertSame('foo', $INPUT->str('empty', 'foo', true));
86 $this->assertSame(false, $INPUT->str('get', false));
87 $this->assertSame(false, $INPUT->str('post', false));
89 $this->assertSame('foo', $INPUT->post->str('string'));
90 $this->assertSame('', $INPUT->post->str('none'));
91 $this->assertSame('', $INPUT->post->str('empty'));
92 $this->assertSame('foo', $INPUT->post->str('none', 'foo'));
93 $this->assertSame('', $INPUT->post->str('empty', 'foo'));
94 $this->assertSame('foo', $INPUT->post->str('empty', 'foo', true));
96 $this->assertSame(false, $INPUT->post->str('get', false));
97 $this->assertSame('1', $INPUT->post->str('post', false));
99 $this->assertSame('foo', $INPUT->get->str('string'));
100 $this->assertSame('', $INPUT->get->str('none'));
101 $this->assertSame('', $INPUT->get->str('empty'));
102 $this->assertSame('foo', $INPUT->get->str('none', 'foo'));
103 $this->assertSame('', $INPUT->get->str('empty', 'foo'));
104 $this->assertSame('foo', $INPUT->get->str('empty', 'foo', true));
106 $this->assertSame(false, $INPUT->get->str('post', false));
107 $this->assertSame('1', $INPUT->get->str('get', false));
109 $this->assertSame('', $INPUT->str('array'));
294 $this->assertEquals('save', $INPUT->extract('do')->str('do'));
295 $this->assertEquals('', $INPUT->extract('emptya')->str('emptya'));
296 $this->assertEquals('foo', $INPUT->extract('string')->str('string'));
297 $this->assertEquals('foo', $INPUT->extract('array')->str('array'));
299 $this->assertEquals('save', $INPUT->post->extract('do')->str('do'));
300 $this->assertEquals('', $INPUT->post->extract('emptya')->str('emptya'));
301 $this->assertEquals('foo', $INPUT->post->extract('string')->str('string'));
302 $this->assertEquals('foo', $INPUT->post->extract('array')->str('array'));