@@ -19,47 +19,47 @@ public function test_resolve_for_typing_resolves_by_id()
1919 $ driver = m::mock (stdClass::class);
2020 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
2121 $ resolver = new ElementResolver ($ driver );
22- $ this ->assertEquals ('foo ' , $ resolver ->resolveForTyping ('#foo ' ));
22+ $ this ->assertSame ('foo ' , $ resolver ->resolveForTyping ('#foo ' ));
2323 }
2424
2525 public function test_resolve_for_typing_falls_back_to_selectors_without_id ()
2626 {
2727 $ driver = m::mock (stdClass::class);
2828 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
2929 $ resolver = new ElementResolver ($ driver );
30- $ this ->assertEquals ('foo ' , $ resolver ->resolveForTyping ('foo ' ));
30+ $ this ->assertSame ('foo ' , $ resolver ->resolveForTyping ('foo ' ));
3131 }
3232
3333 public function test_resolve_for_selection_resolves_by_id ()
3434 {
3535 $ driver = m::mock (stdClass::class);
3636 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
3737 $ resolver = new ElementResolver ($ driver );
38- $ this ->assertEquals ('foo ' , $ resolver ->resolveForSelection ('#foo ' ));
38+ $ this ->assertSame ('foo ' , $ resolver ->resolveForSelection ('#foo ' ));
3939 }
4040
4141 public function test_resolve_for_selection_falls_back_to_selectors_without_id ()
4242 {
4343 $ driver = m::mock (stdClass::class);
4444 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
4545 $ resolver = new ElementResolver ($ driver );
46- $ this ->assertEquals ('foo ' , $ resolver ->resolveForSelection ('foo ' ));
46+ $ this ->assertSame ('foo ' , $ resolver ->resolveForSelection ('foo ' ));
4747 }
4848
4949 public function test_resolve_for_radio_selection_resolves_by_id ()
5050 {
5151 $ driver = m::mock (stdClass::class);
5252 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
5353 $ resolver = new ElementResolver ($ driver );
54- $ this ->assertEquals ('foo ' , $ resolver ->resolveForRadioSelection ('#foo ' ));
54+ $ this ->assertSame ('foo ' , $ resolver ->resolveForRadioSelection ('#foo ' ));
5555 }
5656
5757 public function test_resolve_for_radio_selection_falls_back_to_selectors_without_id ()
5858 {
5959 $ driver = m::mock (stdClass::class);
6060 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
6161 $ resolver = new ElementResolver ($ driver );
62- $ this ->assertEquals ('foo ' , $ resolver ->resolveForRadioSelection ('foo ' , 'value ' ));
62+ $ this ->assertSame ('foo ' , $ resolver ->resolveForRadioSelection ('foo ' , 'value ' ));
6363 }
6464
6565 public function test_resolve_for_radio_selection_throws_exception_without_id_and_without_value ()
@@ -77,70 +77,70 @@ public function test_resolve_for_checking_resolves_by_id()
7777 $ driver = m::mock (stdClass::class);
7878 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
7979 $ resolver = new ElementResolver ($ driver );
80- $ this ->assertEquals ('foo ' , $ resolver ->resolveForChecking ('#foo ' ));
80+ $ this ->assertSame ('foo ' , $ resolver ->resolveForChecking ('#foo ' ));
8181 }
8282
8383 public function test_resolve_for_checking_falls_back_to_selectors_without_id ()
8484 {
8585 $ driver = m::mock (stdClass::class);
8686 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
8787 $ resolver = new ElementResolver ($ driver );
88- $ this ->assertEquals ('foo ' , $ resolver ->resolveForChecking ('foo ' ));
88+ $ this ->assertSame ('foo ' , $ resolver ->resolveForChecking ('foo ' ));
8989 }
9090
9191 public function test_resolve_for_attachment_resolves_by_id ()
9292 {
9393 $ driver = m::mock (stdClass::class);
9494 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
9595 $ resolver = new ElementResolver ($ driver );
96- $ this ->assertEquals ('foo ' , $ resolver ->resolveForAttachment ('#foo ' ));
96+ $ this ->assertSame ('foo ' , $ resolver ->resolveForAttachment ('#foo ' ));
9797 }
9898
9999 public function test_resolve_for_attachment_falls_back_to_selectors_without_id ()
100100 {
101101 $ driver = m::mock (stdClass::class);
102102 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
103103 $ resolver = new ElementResolver ($ driver );
104- $ this ->assertEquals ('foo ' , $ resolver ->resolveForAttachment ('foo ' ));
104+ $ this ->assertSame ('foo ' , $ resolver ->resolveForAttachment ('foo ' ));
105105 }
106106
107107 public function test_resolve_for_field_resolves_by_id ()
108108 {
109109 $ driver = m::mock (stdClass::class);
110110 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
111111 $ resolver = new ElementResolver ($ driver );
112- $ this ->assertEquals ('foo ' , $ resolver ->resolveForField ('#foo ' ));
112+ $ this ->assertSame ('foo ' , $ resolver ->resolveForField ('#foo ' ));
113113 }
114114
115115 public function test_resolve_for_field_falls_back_to_selectors_without_id ()
116116 {
117117 $ driver = m::mock (stdClass::class);
118118 $ driver ->shouldReceive ('findElement ' )->once ()->andReturn ('foo ' );
119119 $ resolver = new ElementResolver ($ driver );
120- $ this ->assertEquals ('foo ' , $ resolver ->resolveForField ('foo ' ));
120+ $ this ->assertSame ('foo ' , $ resolver ->resolveForField ('foo ' ));
121121 }
122122
123123 public function test_format_correctly_formats_selectors ()
124124 {
125125 $ resolver = new ElementResolver (new stdClass );
126- $ this ->assertEquals ('body #modal ' , $ resolver ->format ('#modal ' ));
126+ $ this ->assertSame ('body #modal ' , $ resolver ->format ('#modal ' ));
127127
128128 $ resolver = new ElementResolver (new stdClass , 'prefix ' );
129- $ this ->assertEquals ('prefix #modal ' , $ resolver ->format ('#modal ' ));
129+ $ this ->assertSame ('prefix #modal ' , $ resolver ->format ('#modal ' ));
130130
131131 $ resolver = new ElementResolver (new stdClass , 'prefix ' );
132132 $ resolver ->pageElements (['@modal ' => '#modal ' ]);
133- $ this ->assertEquals ('prefix #modal ' , $ resolver ->format ('@modal ' ));
133+ $ this ->assertSame ('prefix #modal ' , $ resolver ->format ('@modal ' ));
134134
135135 $ resolver = new ElementResolver (new stdClass , 'prefix ' );
136136 $ resolver ->pageElements ([
137137 '@modal ' => '#first ' ,
138138 '@modal-second ' => '#second ' ,
139139 ]);
140- $ this ->assertEquals ('prefix #first ' , $ resolver ->format ('@modal ' ));
141- $ this ->assertEquals ('prefix #second ' , $ resolver ->format ('@modal-second ' ));
142- $ this ->assertEquals ('prefix #first-third ' , $ resolver ->format ('@modal-third ' ));
143- $ this ->assertEquals ('prefix [dusk="missing-element"] ' , $ resolver ->format ('@missing-element ' ));
140+ $ this ->assertSame ('prefix #first ' , $ resolver ->format ('@modal ' ));
141+ $ this ->assertSame ('prefix #second ' , $ resolver ->format ('@modal-second ' ));
142+ $ this ->assertSame ('prefix #first-third ' , $ resolver ->format ('@modal-third ' ));
143+ $ this ->assertSame ('prefix [dusk="missing-element"] ' , $ resolver ->format ('@missing-element ' ));
144144 }
145145
146146 public function test_find_by_id_with_colon ()
@@ -154,6 +154,6 @@ public function test_find_by_id_with_colon()
154154 $ method ->setAccessible (true );
155155 $ result = $ method ->invoke ($ resolver , '#frmLogin:strCustomerLogin_userID ' );
156156
157- $ this ->assertEquals ('foo ' , $ result );
157+ $ this ->assertSame ('foo ' , $ result );
158158 }
159159}
0 commit comments