コード例 #1
0
 /**
  * @param array $cctypes
  * @param boolean|string $expected
  * @dataProvider getCcTypesDataProvider
  */
 public function testGetCcTypes($cctypes, $expected)
 {
     $this->paymentConfig->expects($this->any())->method('getCcTypes')->willReturn($cctypes);
     $result = $this->model->getCcTypes();
     $this->assertEquals($expected, $result);
 }