public function testGetName() { $this->benchmark->expects($this->once())->method('getName')->willReturn('Foobar'); $this->assertSame('Foobar', $this->formatter->getName()); }