public function testGetLastMessage2()
{
$client = new Client(array('log' => true));
$log = new Log($client);
// Set log path temp path as otherwise test fails with output
$errorLog = ini_get('error_log');
ini_set('error_log', sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'php.log');
$message = 'hello world';
$log->log($message);
ini_set('error_log', $errorLog);
$this->assertEquals($message, $log->getLastMessage());
}