@@ -669,20 +669,20 @@ public function testFormSelectYear()
669669 $ select2 = (string ) $ this ->formBuilder ->selectYear ('year ' , 2000 , 2020 , null , ['id ' => 'foo ' ]);
670670 $ select3 = (string ) $ this ->formBuilder ->selectYear ('year ' , 2000 , 2020 , '2000 ' );
671671
672- $ this ->assertContains ('<select name="year"><option value="2000">2000</option><option value="2001">2001</option> ' ,
672+ $ this ->assertStringContainsString ('<select name="year"><option value="2000">2000</option><option value="2001">2001</option> ' ,
673673 $ select1 );
674- $ this ->assertContains ('<select id="foo" name="year"><option value="2000">2000</option><option value="2001">2001</option> ' ,
674+ $ this ->assertStringContainsString ('<select id="foo" name="year"><option value="2000">2000</option><option value="2001">2001</option> ' ,
675675 $ select2 );
676- $ this ->assertContains ('<select name="year"><option value="2000" selected="selected">2000</option><option value="2001">2001</option> ' ,
676+ $ this ->assertStringContainsString ('<select name="year"><option value="2000" selected="selected">2000</option><option value="2001">2001</option> ' ,
677677 $ select3 );
678678 }
679679
680680 public function testFormSelectRange ()
681681 {
682682 $ range = (string ) $ this ->formBuilder ->selectRange ('dob ' , 1900 , 2013 );
683683
684- $ this ->assertContains ('<select name="dob"><option value="1900">1900</option> ' , $ range );
685- $ this ->assertContains ('<option value="2013">2013</option> ' , $ range );
684+ $ this ->assertStringContainsString ('<select name="dob"><option value="1900">1900</option> ' , $ range );
685+ $ this ->assertStringContainsString ('<option value="2013">2013</option> ' , $ range );
686686 }
687687
688688 public function testFormSelectMonth ()
@@ -691,10 +691,10 @@ public function testFormSelectMonth()
691691 $ month2 = (string ) $ this ->formBuilder ->selectMonth ('month ' , '1 ' );
692692 $ month3 = (string ) $ this ->formBuilder ->selectMonth ('month ' , null , ['id ' => 'foo ' ]);
693693
694- $ this ->assertContains ('<select name="month"><option value="1">January</option><option value="2">February</option> ' ,
694+ $ this ->assertStringContainsString ('<select name="month"><option value="1">January</option><option value="2">February</option> ' ,
695695 $ month1 );
696- $ this ->assertContains ('<select name="month"><option value="1" selected="selected">January</option> ' , $ month2 );
697- $ this ->assertContains ('<select id="foo" name="month"><option value="1">January</option> ' , $ month3 );
696+ $ this ->assertStringContainsString ('<select name="month"><option value="1" selected="selected">January</option> ' , $ month2 );
697+ $ this ->assertStringContainsString ('<select id="foo" name="month"><option value="1">January</option> ' , $ month3 );
698698 }
699699
700700 public function testFormCheckbox ()
0 commit comments