public function stream_readTest() { $count = 123; $this->mockStreamWrapper->expects($this->once())->method('read')->with($count)->will($this->returnValue(true)); $this->assertTrue($this->streamWrapperAdapter->stream_read($count)); }