コード例 #1
0
ファイル: LimitStreamTest.php プロジェクト: hazaveh/mySQLtoes
 public function testLengthLessOffsetWhenNoLimitSize()
 {
     $a = Stream::factory('foo_bar');
     $b = new LimitStream($a, -1, 4);
     $this->assertEquals(3, $b->getSize());
 }
コード例 #2
0
 public function testContentLengthIsBounded()
 {
     $this->assertEquals(10, $this->body->getSize());
 }