public function testLengthLessOffsetWhenNoLimitSize() { $a = Stream::factory('foo_bar'); $b = new LimitStream($a, -1, 4); $this->assertEquals(3, $b->getSize()); }
public function testContentLengthIsBounded() { $this->assertEquals(10, $this->body->getSize()); }