public function testReturnsNullIfSizeCannotBeDetermined() { $a = new FnStream(['getSize' => function () { return null; }, 'tell' => function () { return 0; }]); $b = new LimitStream($a); $this->assertNull($b->getSize()); }