@@ -843,12 +843,12 @@ public function testSetRadioFromSessionOldInput()
843843 $ _SESSION = [
844844 '_ci_old_input ' => [
845845 'post ' => [
846- 'foo ' => 'bar ' ,
846+ 'foo ' => '< bar> ' ,
847847 ],
848848 ],
849849 ];
850850
851- $ this ->assertSame (' checked="checked" ' , set_radio ('foo ' , 'bar ' ));
851+ $ this ->assertSame (' checked="checked" ' , set_radio ('foo ' , '< bar> ' ));
852852 $ this ->assertSame ('' , set_radio ('foo ' , 'baz ' ));
853853
854854 unset($ _SESSION ['_ci_old_input ' ]);
@@ -864,7 +864,7 @@ public function testSetRadioFromPost()
864864
865865 $ this ->assertSame (' checked="checked" ' , set_radio ('bar ' , 'baz ' ));
866866 $ this ->assertSame ('' , set_radio ('bar ' , 'boop ' ));
867- $ this ->assertSame (' checked="checked" ' , set_radio ('bar ' , 'boop ' , true ));
867+ $ this ->assertSame ('' , set_radio ('bar ' , 'boop ' , true ));
868868 }
869869
870870 /**
@@ -873,7 +873,7 @@ public function testSetRadioFromPost()
873873 */
874874 public function testSetRadioFromPostWithValueZero ()
875875 {
876- $ _POST ['bar ' ] = 0 ;
876+ $ _POST ['bar ' ] = ' 0 ' ;
877877
878878 $ this ->assertSame (' checked="checked" ' , set_radio ('bar ' , '0 ' ));
879879 $ this ->assertSame ('' , set_radio ('bar ' , 'boop ' ));
0 commit comments