本文整理汇总了PHP中Bank::utforBetaling方法的典型用法代码示例。如果您正苦于以下问题:PHP Bank::utforBetaling方法的具体用法?PHP Bank::utforBetaling怎么用?PHP Bank::utforBetaling使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bank
的用法示例。
在下文中一共展示了Bank::utforBetaling方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testBetalingIdTOM
public function testBetalingIdTOM()
{
//arrange
$bank = new Bank(new DBStub());
//act
$res = $bank->utforBetaling("");
//assert
$this->assertEquals("Feil", $res);
}
示例2: Bank
public function testUtførBetalingMedDatabaseFeil()
{
//Arrange
$bank = new Bank(new DBStubSqlite());
$TxID = 6;
//Act
$OK = $bank->utforBetaling($TxID);
//Assert
$this->assertEquals("Feil", $OK);
}
示例3: testUtforEnBetalingMedUgyldigTransaksjonsId
public function testUtforEnBetalingMedUgyldigTransaksjonsId()
{
// Arrange
$TxId = "111";
$bank = new Bank(new DBStub());
// Act
$utforBetaling = $bank->utforBetaling($TxId);
// Assert
$this->assertEquals("Feil", $utforBetaling);
}
示例4: test_utforBetaling_Feil
public function test_utforBetaling_Feil()
{
//Arrange
$bank = new Bank(new BankDBStub());
//Ingen klasser i domeneModell inneholder et felt som TxID, setter denne lik testverdien som gir OK resultat.
$TxID = -1;
//Act
$betaling = $bank->utforBetaling($TxID);
//Assert
$this->assertEquals("Feil", $betaling);
}
示例5: testUtforBetaling_avventerTransaksjonFeil
/**
* @author Kristian Ulvund
* @version 1.0, 2016.01.26
*
* Denne testen sjekker om en transaksjon som er markert som utført
* blir oppdaget.
* @assert string "Feil"
*/
public function testUtforBetaling_avventerTransaksjonFeil()
{
// Arrange
$TxID = 6;
$bank = new Bank(new DBStub());
// Act
$resultat = $bank->utforBetaling($TxID);
// Assert
$this->assertEquals("Feil", $resultat);
}
示例6: testUtforBetaling
public function testUtforBetaling()
{
$bank = new Bank(new BankDatabaseStub());
static::assertEquals($bank->utforBetaling(1), "Feil");
static::assertEquals($bank->utforBetaling(2), "OK");
}