public function testCanFormatAStatsModel($images, $users, $bytes, $customStats, $pattern)
{
$model = $this->getMock('Imbo\\Model\\Stats');
$model->expects($this->once())->method('getNumImages')->will($this->returnValue($images));
$model->expects($this->once())->method('getNumUsers')->will($this->returnValue($users));
$model->expects($this->once())->method('getNumBytes')->will($this->returnValue($bytes));
$model->expects($this->once())->method('getCustomStats')->will($this->returnValue($customStats));
$this->assertRegExp($pattern, $this->formatter->format($model));
}