public function testLog() { $input = 'message'; $expected = '%amessage'; $this->stream->expects($this->once())->method('write')->with($this->matches($expected)); $this->object->log($input); }