コード例 #1
0
 /**
  * @param bool $isOneAvailable
  * @param string $instructionsOne
  * @param bool $isTwoAvailable
  * @param string $instructionsTwo
  * @param array $result
  * @dataProvider dataProviderGetConfig
  */
 public function testGetConfig($isOneAvailable, $instructionsOne, $isTwoAvailable, $instructionsTwo, $result)
 {
     $this->methodOneMock->expects($this->once())->method('isAvailable')->willReturn($isOneAvailable);
     $this->methodOneMock->expects($this->any())->method('getInstructions')->willReturn($instructionsOne);
     $this->methodTwoMock->expects($this->once())->method('isAvailable')->willReturn($isTwoAvailable);
     $this->methodTwoMock->expects($this->any())->method('getInstructions')->willReturn($instructionsTwo);
     $this->assertEquals($result, $this->model->getConfig());
 }