File tree Expand file tree Collapse file tree 8 files changed +16
-16
lines changed Expand file tree Collapse file tree 8 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ function it_chunks_in_multiple()
40
40
$ this ->getContents ()->shouldReturn ("6 \r\nThis i \r\n6 \r\ns a st \r\n4 \r\nream \r\n0 \r\n\r\n" );
41
41
}
42
42
43
- function it_knows_the_content_size ()
43
+ function it_does_not_know_the_content_size ()
44
44
{
45
45
$ stream = new MemoryStream ('This is a stream ' );
46
46
$ this ->beConstructedWith ($ stream , 6 );
47
47
48
- $ this ->getSize ()->shouldReturn (strlen ( " 10 \r\n This is a stream \r\n 0 \r\n\r\n" ) );
48
+ $ this ->getSize ()->shouldReturn (null );
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ function it_gets_content()
42
42
$ this ->getContents ()->shouldReturn (gzcompress ('This is a test stream ' ));
43
43
}
44
44
45
- function it_knows_the_content_size ()
45
+ function it_does_not_know_the_content_size ()
46
46
{
47
47
$ stream = new MemoryStream ('This is a test stream ' );
48
48
$ this ->beConstructedWith ($ stream );
49
49
50
50
$ stream ->rewind ();
51
- $ this ->getSize ()->shouldReturn (strlen ( gzcompress ( ' This is a test stream ' )) );
51
+ $ this ->getSize ()->shouldReturn (null );
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ function it_gets_content()
41
41
$ this ->getContents ()->shouldReturn ('test ' );
42
42
}
43
43
44
- function it_knows_the_content_size ()
44
+ function it_does_not_know_the_content_size ()
45
45
{
46
46
$ stream = new MemoryStream ("4 \r\ntest \r\n4 \r\ntest \r\n0 \r\n\r\n\0" );
47
47
$ this ->beConstructedWith ($ stream );
48
48
49
- $ this ->getSize ()->shouldReturn (strlen ( ' testtest ' ) );
49
+ $ this ->getSize ()->shouldReturn (null );
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ function it_gets_content()
42
42
$ this ->getContents ()->shouldReturn ('This is a test stream ' );
43
43
}
44
44
45
- function it_knows_the_content_size ()
45
+ function it_does_not_know_the_content_size ()
46
46
{
47
47
$ stream = new MemoryStream (gzcompress ('This is a test stream ' ));
48
48
$ this ->beConstructedWith ($ stream );
49
49
50
- $ this ->getSize ()->shouldReturn (strlen ( ' This is a test stream ' ) );
50
+ $ this ->getSize ()->shouldReturn (null );
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ function it_gets_content()
37
37
$ this ->getContents ()->shouldReturn (gzdeflate ('This is a test stream ' ));
38
38
}
39
39
40
- function it_knows_the_content_size ()
40
+ function it_does_not_know_the_content_size ()
41
41
{
42
42
$ stream = new MemoryStream ('This stream is a test stream ' );
43
43
$ this ->beConstructedWith ($ stream );
44
44
45
- $ this ->getSize ()->shouldReturn (strlen ( gzdeflate ( ' This stream is a test stream ' )) );
45
+ $ this ->getSize ()->shouldReturn (null );
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ function it_gets_content()
42
42
$ this ->getContents ()->shouldReturn ('This is a test stream ' );
43
43
}
44
44
45
- function it_knows_the_content_size ()
45
+ function it_does_not_know_the_content_size ()
46
46
{
47
47
$ stream = new MemoryStream (gzencode ('This is a test stream ' ));
48
48
$ this ->beConstructedWith ($ stream );
49
49
50
- $ this ->getSize ()->shouldReturn (strlen ( ' This is a test stream ' ) );
50
+ $ this ->getSize ()->shouldReturn (null );
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ function it_gets_content()
42
42
$ this ->getContents ()->shouldReturn (gzencode ('This is a test stream ' ));
43
43
}
44
44
45
- function it_knows_the_content_size ()
45
+ function it_does_not_know_the_content_size ()
46
46
{
47
47
$ stream = new MemoryStream ('This is a test stream ' );
48
48
$ this ->beConstructedWith ($ stream );
49
49
50
50
$ stream ->rewind ();
51
- $ this ->getSize ()->shouldReturn (strlen ( gzencode ( ' This is a test stream ' )) );
51
+ $ this ->getSize ()->shouldReturn (null );
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ function it_gets_content()
37
37
$ this ->getContents ()->shouldReturn ('This is a test stream ' );
38
38
}
39
39
40
- function it_knows_the_content_size ()
40
+ function it_does_not_know_the_content_size ()
41
41
{
42
42
$ stream = new MemoryStream (gzdeflate ('This stream is a test stream ' ));
43
43
$ this ->beConstructedWith ($ stream );
44
44
45
- $ this ->getSize ()->shouldReturn (strlen ( ' This stream is a test stream ' ) );
45
+ $ this ->getSize ()->shouldReturn (null );
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments