@@ -30,7 +30,7 @@ public function testToString()
3030
3131 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
3232 $ ret = $ stream ->__toString ();
33- $ this ->assertEquals ('foobarbaz ' , $ ret );
33+ $ this ->assertSame ('foobarbaz ' , $ ret );
3434 }
3535
3636 public function testClose ()
@@ -47,7 +47,7 @@ public function testDetach()
4747 $ decorated ->detach ()->shouldBeCalled ()->willReturn (250 );
4848 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
4949 $ ret = $ stream ->detach ();
50- $ this ->assertEquals (250 , $ ret );
50+ $ this ->assertSame (250 , $ ret );
5151 }
5252
5353 public function testGetSize ()
@@ -56,7 +56,7 @@ public function testGetSize()
5656 $ decorated ->getSize ()->shouldBeCalled ()->willReturn (250 );
5757 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
5858 $ ret = $ stream ->getSize ();
59- $ this ->assertEquals (150 , $ ret );
59+ $ this ->assertSame (150 , $ ret );
6060 }
6161
6262 public function testTell ()
@@ -65,7 +65,7 @@ public function testTell()
6565 $ decorated ->tell ()->shouldBeCalled ()->willReturn (188 );
6666 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
6767 $ ret = $ stream ->tell ();
68- $ this ->assertEquals (88 , $ ret );
68+ $ this ->assertSame (88 , $ ret );
6969 }
7070
7171 public function testIsSeekable ()
@@ -74,7 +74,7 @@ public function testIsSeekable()
7474 $ decorated ->isSeekable ()->shouldBeCalled ()->willReturn (true );
7575 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
7676 $ ret = $ stream ->isSeekable ();
77- $ this ->assertEquals (true , $ ret );
77+ $ this ->assertSame (true , $ ret );
7878 }
7979
8080 public function testIsWritable ()
@@ -83,7 +83,7 @@ public function testIsWritable()
8383 $ decorated ->isWritable ()->shouldBeCalled ()->willReturn (true );
8484 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
8585 $ ret = $ stream ->isWritable ();
86- $ this ->assertEquals (true , $ ret );
86+ $ this ->assertSame (true , $ ret );
8787 }
8888
8989 public function testIsReadable ()
@@ -92,7 +92,7 @@ public function testIsReadable()
9292 $ decorated ->isReadable ()->shouldBeCalled ()->willReturn (false );
9393 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
9494 $ ret = $ stream ->isReadable ();
95- $ this ->assertEquals (false , $ ret );
95+ $ this ->assertSame (false , $ ret );
9696 }
9797
9898 public function testSeek ()
@@ -101,7 +101,7 @@ public function testSeek()
101101 $ decorated ->seek (126 , SEEK_SET )->shouldBeCalled ()->willReturn (0 );
102102 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
103103 $ ret = $ stream ->seek (26 );
104- $ this ->assertEquals (0 , $ ret );
104+ $ this ->assertSame (0 , $ ret );
105105 }
106106
107107 public function testRewind ()
@@ -110,7 +110,7 @@ public function testRewind()
110110 $ decorated ->seek (100 , SEEK_SET )->shouldBeCalled ()->willReturn (0 );
111111 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
112112 $ ret = $ stream ->rewind ();
113- $ this ->assertEquals (0 , $ ret );
113+ $ this ->assertSame (0 , $ ret );
114114 }
115115
116116 public function testWrite ()
@@ -120,7 +120,7 @@ public function testWrite()
120120 $ decorated ->write ("foobaz " )->shouldBeCalled ()->willReturn (6 );
121121 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
122122 $ ret = $ stream ->write ("foobaz " );
123- $ this ->assertEquals (6 , $ ret );
123+ $ this ->assertSame (6 , $ ret );
124124 }
125125
126126 public function testRead ()
@@ -130,7 +130,7 @@ public function testRead()
130130 $ decorated ->read (3 )->shouldBeCalled ()->willReturn ("foo " );
131131 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
132132 $ ret = $ stream ->read (3 );
133- $ this ->assertEquals ("foo " , $ ret );
133+ $ this ->assertSame ("foo " , $ ret );
134134 }
135135
136136 public function testGetContents ()
@@ -140,7 +140,7 @@ public function testGetContents()
140140 $ decorated ->getContents ()->shouldBeCalled ()->willReturn ("foo " );
141141 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
142142 $ ret = $ stream ->getContents ();
143- $ this ->assertEquals ("foo " , $ ret );
143+ $ this ->assertSame ("foo " , $ ret );
144144 }
145145
146146 public function testGetMetadata ()
@@ -149,7 +149,7 @@ public function testGetMetadata()
149149 $ decorated ->getMetadata ("bar " )->shouldBeCalled ()->willReturn ("foo " );
150150 $ stream = new RelativeStream ($ decorated ->reveal (), 100 );
151151 $ ret = $ stream ->getMetadata ("bar " );
152- $ this ->assertEquals ("foo " , $ ret );
152+ $ this ->assertSame ("foo " , $ ret );
153153 }
154154
155155 public function testWriteRaisesExceptionWhenPointerIsBehindOffset ()
@@ -200,6 +200,6 @@ public function testCanReadContentFromNotSeekableResource()
200200 $ decorated ->getContents ()->willReturn ('CONTENTS ' );
201201
202202 $ stream = new RelativeStream ($ decorated ->reveal (), 3 );
203- $ this ->assertEquals ('CONTENTS ' , $ stream ->__toString ());
203+ $ this ->assertSame ('CONTENTS ' , $ stream ->__toString ());
204204 }
205205}
0 commit comments