|
@@ 91-102 (lines=12) @@
|
| 88 |
|
$this->classToTest->setInfo($this->info); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function testPrepareSpecificInformation() |
| 92 |
|
{ |
| 93 |
|
$this->transactionStatus->method('getCardtype')->willReturn('V'); |
| 94 |
|
|
| 95 |
|
$this->info->method('getLastTransId')->willReturn('12345'); |
| 96 |
|
|
| 97 |
|
$result = $this->classToTest->getSpecificInformation(); |
| 98 |
|
$this->assertArrayHasKey('Credit Card Type:', $result); |
| 99 |
|
|
| 100 |
|
$result = $this->classToTest->getSpecificInformation(); |
| 101 |
|
$this->assertNotEmpty($result); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public function testPrepareSpecificInformationUnknownCCType() |
| 105 |
|
{ |
|
@@ 104-115 (lines=12) @@
|
| 101 |
|
$this->assertNotEmpty($result); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public function testPrepareSpecificInformationUnknownCCType() |
| 105 |
|
{ |
| 106 |
|
$this->transactionStatus->method('getCardtype')->willReturn('ABC'); |
| 107 |
|
|
| 108 |
|
$this->info->method('getLastTransId')->willReturn('12345'); |
| 109 |
|
|
| 110 |
|
$result = $this->classToTest->getSpecificInformation(); |
| 111 |
|
$this->assertArrayHasKey('Credit Card Type:', $result); |
| 112 |
|
|
| 113 |
|
$result = $this->classToTest->getSpecificInformation(); |
| 114 |
|
$this->assertNotEmpty($result); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
public function testPrepareSpecificInformationNoLastTransId() |
| 118 |
|
{ |