public function testSprintf() { $rep = Translation::sprintf('Foo %%bar%% %%coffee%%.', array('bar' => 'BAR', 'coffee' => 'tea')); $this->assertEquals('Foo BAR tea.', $rep); }