@@ -36,13 +36,13 @@ public function setUp(): void
3636
3737 public function testGettersDefault (): void
3838 {
39- self :: assertEquals (HtmlResponse::STATUS_OK , $ this ->response ->getStatusCode ());
40- self :: assertEquals (HtmlResponse::PHRASES [HtmlResponse::STATUS_OK ], $ this ->response ->getReasonPhrase ());
41- self :: assertInstanceOf (StreamInterface::class, $ this ->response ->getBody ());
42- self :: assertEquals ('php://temp ' , $ this ->response ->getBody ()->getMetadata ('uri ' ));
43- self :: assertEquals ($ this ->content , $ this ->response ->getBody ()->getContents ());
44- self :: assertEquals ($ this ->contentType , $ this ->response ->getHeaderLine ('content-type ' ));
45- self :: assertEquals ('1.1 ' , $ this ->response ->getProtocolVersion ());
39+ $ this -> assertSame (HtmlResponse::STATUS_OK , $ this ->response ->getStatusCode ());
40+ $ this -> assertSame (HtmlResponse::PHRASES [HtmlResponse::STATUS_OK ], $ this ->response ->getReasonPhrase ());
41+ $ this -> assertInstanceOf (StreamInterface::class, $ this ->response ->getBody ());
42+ $ this -> assertSame ('php://temp ' , $ this ->response ->getBody ()->getMetadata ('uri ' ));
43+ $ this -> assertSame ($ this ->content , $ this ->response ->getBody ()->getContents ());
44+ $ this -> assertSame ($ this ->contentType , $ this ->response ->getHeaderLine ('content-type ' ));
45+ $ this -> assertSame ('1.1 ' , $ this ->response ->getProtocolVersion ());
4646 }
4747
4848 public function testGettersSpecifiedArguments (): void
@@ -54,18 +54,18 @@ public function testGettersSpecifiedArguments(): void
5454 $ protocol = '2 ' ,
5555 $ reasonPhrase = HtmlResponse::PHRASES [HtmlResponse::STATUS_NOT_FOUND ]
5656 );
57- self :: assertEquals ($ this ->content , $ response ->getBody ()->getContents ());
58- self :: assertEquals ($ statusCode , $ response ->getStatusCode ());
59- self :: assertEquals ($ reasonPhrase , $ response ->getReasonPhrase ());
60- self :: assertInstanceOf (StreamInterface::class, $ response ->getBody ());
61- self :: assertEquals (
57+ $ this -> assertSame ($ this ->content , $ response ->getBody ()->getContents ());
58+ $ this -> assertSame ($ statusCode , $ response ->getStatusCode ());
59+ $ this -> assertSame ($ reasonPhrase , $ response ->getReasonPhrase ());
60+ $ this -> assertInstanceOf (StreamInterface::class, $ response ->getBody ());
61+ $ this -> assertSame (
6262 [
6363 'Content-Language ' => ['en ' ],
6464 'Content-Type ' => [$ this ->contentType ],
6565 ],
6666 $ response ->getHeaders ()
6767 );
68- self :: assertEquals ($ protocol , $ response ->getProtocolVersion ());
68+ $ this -> assertSame ($ protocol , $ response ->getProtocolVersion ());
6969 }
7070
7171 public function testGettersIfHasBeenPassedContentTypeHeader (): void
@@ -77,42 +77,42 @@ public function testGettersIfHasBeenPassedContentTypeHeader(): void
7777 $ protocol = '2 ' ,
7878 $ reasonPhrase = HtmlResponse::PHRASES [HtmlResponse::STATUS_NOT_FOUND ]
7979 );
80- self :: assertEquals ($ this ->content , $ response ->getBody ()->getContents ());
81- self :: assertEquals ($ statusCode , $ response ->getStatusCode ());
82- self :: assertEquals ($ reasonPhrase , $ response ->getReasonPhrase ());
83- self :: assertInstanceOf (StreamInterface::class, $ response ->getBody ());
84- self :: assertEquals (
80+ $ this -> assertSame ($ this ->content , $ response ->getBody ()->getContents ());
81+ $ this -> assertSame ($ statusCode , $ response ->getStatusCode ());
82+ $ this -> assertSame ($ reasonPhrase , $ response ->getReasonPhrase ());
83+ $ this -> assertInstanceOf (StreamInterface::class, $ response ->getBody ());
84+ $ this -> assertSame (
8585 [
8686 'Content-Language ' => ['en ' ],
8787 'Content-Type ' => ['text/plain; charset=UTF-8 ' ],
8888 ],
8989 $ response ->getHeaders ()
9090 );
91- self :: assertEquals ($ protocol , $ response ->getProtocolVersion ());
91+ $ this -> assertSame ($ protocol , $ response ->getProtocolVersion ());
9292 }
9393
9494 public function testWithStatus (): void
9595 {
9696 $ response = $ this ->response ->withStatus (HtmlResponse::STATUS_NOT_FOUND );
97- self :: assertNotEquals ($ this ->response , $ response );
98- self :: assertEquals (HtmlResponse::STATUS_NOT_FOUND , $ response ->getStatusCode ());
99- self :: assertEquals (HtmlResponse::PHRASES [HtmlResponse::STATUS_NOT_FOUND ], $ response ->getReasonPhrase ());
97+ $ this -> assertNotSame ($ this ->response , $ response );
98+ $ this -> assertSame (HtmlResponse::STATUS_NOT_FOUND , $ response ->getStatusCode ());
99+ $ this -> assertSame (HtmlResponse::PHRASES [HtmlResponse::STATUS_NOT_FOUND ], $ response ->getReasonPhrase ());
100100 }
101101
102102 public function testWithStatusAndCustomReasonPhrase (): void
103103 {
104104 $ response = $ this ->response ->withStatus (HtmlResponse::STATUS_NOT_FOUND , $ customPhrase = 'Custom Phrase ' );
105- self :: assertNotEquals ($ this ->response , $ response );
106- self :: assertEquals (HtmlResponse::STATUS_NOT_FOUND , $ response ->getStatusCode ());
107- self :: assertEquals ($ customPhrase , $ response ->getReasonPhrase ());
105+ $ this -> assertNotSame ($ this ->response , $ response );
106+ $ this -> assertSame (HtmlResponse::STATUS_NOT_FOUND , $ response ->getStatusCode ());
107+ $ this -> assertSame ($ customPhrase , $ response ->getReasonPhrase ());
108108 }
109109
110110 public function testWithStatusHasNotBeenChangedCodeAndHasBeenChangedReasonPhrase (): void
111111 {
112112 $ response = $ this ->response ->withStatus (HtmlResponse::STATUS_OK , $ customPhrase = 'Custom Phrase ' );
113- self :: assertNotEquals ($ this ->response , $ response );
114- self :: assertEquals (HtmlResponse::STATUS_OK , $ response ->getStatusCode ());
115- self :: assertEquals ($ customPhrase , $ response ->getReasonPhrase ());
113+ $ this -> assertNotSame ($ this ->response , $ response );
114+ $ this -> assertSame (HtmlResponse::STATUS_OK , $ response ->getStatusCode ());
115+ $ this -> assertSame ($ customPhrase , $ response ->getReasonPhrase ());
116116 }
117117
118118 /**
0 commit comments