public function stream_lockTest() { $operation = LOCK_SH; $this->mockStreamWrapper->expects($this->once())->method('lock')->with($operation)->will($this->returnValue(true)); $this->assertTrue($this->streamWrapperAdapter->stream_lock($operation)); }