public function setUp() { $this->check = $this->getMock(CheckInterface::class); $this->check->expects($this->any())->method('getName')->will($this->returnValue('Some Check')); $failure = new Failure($this->check->getName(), ''); $this->assertSame('Some Check', $failure->getCheckName()); }
public function setUp() { $this->check = $this->getMock(CheckInterface::class); $this->check->expects($this->any())->method('getName')->will($this->returnValue('Some Check')); }