Ejemplo n.º 1
0
 /**
  * @param string $severity
  * @param string $colorClass
  * @dataProvider getLabels
  */
 public function testGetLabels($severity, $colorClass)
 {
     $this->benchmark->expects($this->any())->method('getMetadata')->willReturn(['severity' => $severity]);
     $this->assertSame($colorClass, $this->formatter->getLabel());
 }
 /**
  * @covers ::setLabel
  * @covers ::getLabel
  */
 public function testGetLabel()
 {
     $label = $this->randomMachineName();
     $this->assertSame($this->sut, $this->sut->setLabel($label));
     $this->assertSame($label, $this->sut->getLabel());
 }