@@ -49,7 +49,7 @@ public function testSetUri()
4949
5050 $ this ->assertInstanceOf (HeaderInterface::class, $ header ->setUri ($ uri2 ));
5151
52- $ this ->assertEquals ($ uri2 , $ header ->getUri ());
52+ $ this ->assertSame ($ uri2 , $ header ->getUri ());
5353 }
5454
5555 public function testSetEmptyUri ()
@@ -60,7 +60,7 @@ public function testSetEmptyUri()
6060
6161 $ this ->assertInstanceOf (HeaderInterface::class, $ header ->setUri (null ));
6262
63- $ this ->assertEquals ( null , $ header ->getUri ());
63+ $ this ->assertNull ( $ header ->getUri ());
6464 }
6565
6666 public function testSetInvalidUriThatWithoutScheme ()
@@ -87,28 +87,28 @@ public function testGetUri()
8787
8888 $ header = new HeaderAccessControlAllowOrigin ($ uri );
8989
90- $ this ->assertEquals ($ uri , $ header ->getUri ());
90+ $ this ->assertSame ($ uri , $ header ->getUri ());
9191 }
9292
9393 public function testGetEmptyUri ()
9494 {
9595 $ header = new HeaderAccessControlAllowOrigin (null );
9696
97- $ this ->assertEquals ( null , $ header ->getUri ());
97+ $ this ->assertNull ( $ header ->getUri ());
9898 }
9999
100100 public function testGetFieldName ()
101101 {
102102 $ header = new HeaderAccessControlAllowOrigin (null );
103103
104- $ this ->assertEquals ('Access-Control-Allow-Origin ' , $ header ->getFieldName ());
104+ $ this ->assertSame ('Access-Control-Allow-Origin ' , $ header ->getFieldName ());
105105 }
106106
107107 public function testGetFieldValueWithoutUri ()
108108 {
109109 $ header = new HeaderAccessControlAllowOrigin (null );
110110
111- $ this ->assertEquals ('* ' , $ header ->getFieldValue ());
111+ $ this ->assertSame ('* ' , $ header ->getFieldValue ());
112112 }
113113
114114 public function testGetFieldValueWithSchemeAndHost ()
@@ -117,7 +117,7 @@ public function testGetFieldValueWithSchemeAndHost()
117117
118118 $ header = new HeaderAccessControlAllowOrigin ($ uri );
119119
120- $ this ->assertEquals ('http://localhost ' , $ header ->getFieldValue ());
120+ $ this ->assertSame ('http://localhost ' , $ header ->getFieldValue ());
121121 }
122122
123123 public function testGetFieldValueWithSchemeAndHostAndPort ()
@@ -126,7 +126,7 @@ public function testGetFieldValueWithSchemeAndHostAndPort()
126126
127127 $ header = new HeaderAccessControlAllowOrigin ($ uri );
128128
129- $ this ->assertEquals ('http://localhost:3000 ' , $ header ->getFieldValue ());
129+ $ this ->assertSame ('http://localhost:3000 ' , $ header ->getFieldValue ());
130130 }
131131
132132 public function testGetFieldValueWithValidOrigin ()
@@ -135,14 +135,14 @@ public function testGetFieldValueWithValidOrigin()
135135
136136 $ header = new HeaderAccessControlAllowOrigin ($ uri );
137137
138- $ this ->assertEquals ('http://localhost:3000 ' , $ header ->getFieldValue ());
138+ $ this ->assertSame ('http://localhost:3000 ' , $ header ->getFieldValue ());
139139 }
140140
141141 public function testToStringWithoutUri ()
142142 {
143143 $ header = new HeaderAccessControlAllowOrigin (null );
144144
145- $ this ->assertEquals ('Access-Control-Allow-Origin: * ' , (string ) $ header );
145+ $ this ->assertSame ('Access-Control-Allow-Origin: * ' , (string ) $ header );
146146 }
147147
148148 public function testToStringWithSchemeAndHost ()
@@ -151,7 +151,7 @@ public function testToStringWithSchemeAndHost()
151151
152152 $ header = new HeaderAccessControlAllowOrigin ($ uri );
153153
154- $ this ->assertEquals ('Access-Control-Allow-Origin: http://localhost ' , (string ) $ header );
154+ $ this ->assertSame ('Access-Control-Allow-Origin: http://localhost ' , (string ) $ header );
155155 }
156156
157157 public function testToStringWithSchemeAndHostAndPort ()
@@ -160,7 +160,7 @@ public function testToStringWithSchemeAndHostAndPort()
160160
161161 $ header = new HeaderAccessControlAllowOrigin ($ uri );
162162
163- $ this ->assertEquals ('Access-Control-Allow-Origin: http://localhost:3000 ' , (string ) $ header );
163+ $ this ->assertSame ('Access-Control-Allow-Origin: http://localhost:3000 ' , (string ) $ header );
164164 }
165165
166166 public function testToStringWithValidOrigin ()
@@ -169,6 +169,6 @@ public function testToStringWithValidOrigin()
169169
170170 $ header = new HeaderAccessControlAllowOrigin ($ uri );
171171
172- $ this ->assertEquals ('Access-Control-Allow-Origin: http://localhost:3000 ' , (string ) $ header );
172+ $ this ->assertSame ('Access-Control-Allow-Origin: http://localhost:3000 ' , (string ) $ header );
173173 }
174174}
0 commit comments