• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Bank类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Bank的典型用法代码示例。如果您正苦于以下问题:PHP Bank类的具体用法?PHP Bank怎么用?PHP Bank使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Bank类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: testSaldiArray

 public function testSaldiArray()
 {
     // arrange
     $personnummer = "123";
     $konti = array();
     $konto = new konto();
     $konto->personnummer = $personnummer;
     $konto->kontonummer = "123123123";
     $konto->type = "Sparekonto";
     $konto->saldo = 2300.34;
     $konto->valuta = "NOK";
     $konti[0] = $konto;
     $konto1 = new konto();
     $konto1->personnummer = $personnummer;
     $konto1->kontonummer = "124123123";
     $konto1->type = "BSUkonto";
     $konto1->saldo = 2200.34;
     $konto1->valuta = "NOK";
     $konti[1] = $konto1;
     $konto2 = new konto();
     $konto2->personnummer = $personnummer;
     $konto2->kontonummer = "124123123";
     $konto2->type = "Brukskonto";
     $konto2->saldo = 2200.34;
     $konto2->valuta = "NOK";
     $konti[2] = $konto2;
     $bank = new Bank(new DBStub());
     // act
     $res = $bank->hentSaldi($personnummer);
     // assert
     $this->assertEquals($konti, $res);
 }
开发者ID:Jagjitcsingh,项目名称:TestBankApplication,代码行数:32,代码来源:hentSaldiTest.php


示例2: testHentFlereBetalinger

 public function testHentFlereBetalinger()
 {
     //Arrange
     $bank = new Bank(new DBStubSqlite());
     $personnummer = "11223344556";
     //Act
     $betalinger = $bank->hentBetalinger($personnummer);
     //Assert
     $this->assertEquals(3, count($betalinger));
     $this->assertEquals("6", $betalinger[0]->TxID);
     $this->assertEquals("12312345", $betalinger[0]->FraTilKontonummer);
     $this->assertEquals("1234", $betalinger[0]->Belop);
     $this->assertEquals("2012-12-12", $betalinger[0]->Dato);
     $this->assertEquals("Melding", $betalinger[0]->Melding);
     $this->assertEquals("234567", $betalinger[0]->Kontonummer);
     $this->assertEquals("1", $betalinger[0]->Avventer);
     $this->assertEquals("11", $betalinger[1]->TxID);
     $this->assertEquals("12312345", $betalinger[1]->FraTilKontonummer);
     $this->assertEquals("99.99", $betalinger[1]->Belop);
     $this->assertEquals("2012-12-11", $betalinger[1]->Dato);
     $this->assertEquals("Avgift på smørbrød til lucifer selv", $betalinger[1]->Melding);
     $this->assertEquals("234567", $betalinger[1]->Kontonummer);
     $this->assertEquals("1", $betalinger[1]->Avventer);
     $this->assertEquals("3", $betalinger[2]->TxID);
     $this->assertEquals("20102012345", $betalinger[2]->FraTilKontonummer);
     $this->assertEquals("-1400.7", $betalinger[2]->Belop);
     $this->assertEquals("2015-03-13", $betalinger[2]->Dato);
     $this->assertEquals("Husleie", $betalinger[2]->Melding);
     $this->assertEquals("55551166677", $betalinger[2]->Kontonummer);
     $this->assertEquals("1", $betalinger[2]->Avventer);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:31,代码来源:hentBetalingerTest.php


示例3: testEndreUgyldigKunde

 public function testEndreUgyldigKunde()
 {
     //Arrange
     $bank = new Bank(new DBStubSqlite());
     $kunde = new kunde();
     $kunde->personnummer = "11122233312";
     $kunde->fornavn = "Ugyldig";
     $kunde->etternavn = "Person";
     $kunde->adresse = "Luftslåttveien 22";
     $kunde->postnr = "1387";
     $kunde->poststed = "Asker";
     $kunde->telefonnr = "22224444";
     $kunde->passord = "11122233312";
     //Act
     $OK = $bank->hentKundeInfo($kunde->personnummer);
     $this->assertEquals("Feil", $OK);
     $oppdatertKunde = clone $kunde;
     $oppdatertKunde->fornavn = "Lina";
     $oppdatertKunde->etternavn = "Jonvik";
     $oppdatertKunde->adresse = "Slaskebakken 22";
     $OK = $bank->endreKundeInfo($oppdatertKunde);
     $this->assertEquals("OK", $OK);
     $OK = $bank->hentKundeInfo($kunde->personnummer);
     $this->assertEquals("Feil", $OK);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:25,代码来源:endreKundeInfoBLTest.php


示例4: _createNewBank

 protected function _createNewBank($bank)
 {
     $model = new Bank();
     $model->title = $bank['title'];
     $model->position = $bank['pos'];
     $model->license = $bank['license'];
     $model->save();
 }
开发者ID:ZyManch,项目名称:zbank,代码行数:8,代码来源:BankCommand.php


示例5: testfeilInnlogging

 public function testfeilInnlogging()
 {
     $personnummer = "01010122344";
     $passord = "1234566";
     $bank = new Bank(new DBStubSqlite());
     $OK = $bank->sjekkLoggInn($personnummer, $passord);
     $this->assertEquals("Feil", $OK);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:8,代码来源:sjekkLoggInnTest.php


示例6: testRiktigPersonnummer

 function testRiktigPersonnummer()
 {
     $personnummer = "12345678901";
     $passord = "passord";
     $bank = new Bank(new DBStub());
     $resultat = $bank->sjekkLoggInn($personnummer, $passord);
     $this->assertEquals($resultat, "OK");
 }
开发者ID:Adsime,项目名称:TestingCourse,代码行数:8,代码来源:bankLogikkTest.php


示例7: isValid

 /**
  * @param int $bankCode
  * @param int $account
  * @return bool
  * @throws BankNotFoundTestAPIException
  */
 protected function isValid(Bank $bank, $account)
 {
     try {
         return $bank->isValid($account);
     } catch (Exception $e) {
         echo $e->getMessage(), "\n", $e->getTraceAsString();
         exit(1);
     }
 }
开发者ID:bmdevel,项目名称:bav,代码行数:15,代码来源:BAVTestAPI.php


示例8: testBetalingIdTOM

 public function testBetalingIdTOM()
 {
     //arrange
     $bank = new Bank(new DBStub());
     //act
     $res = $bank->utforBetaling("");
     //assert
     $this->assertEquals("Feil", $res);
 }
开发者ID:Jagjitcsingh,项目名称:TestBankApplication,代码行数:9,代码来源:utforBetalingTest.php


示例9: test_hentBetalinger_OK

 public function test_hentBetalinger_OK()
 {
     //Arrange
     $bank = new Bank(new BankDBStub());
     //Act
     $betalinger = $bank->hentBetalinger("16019312345");
     //Assert
     $this->assertEquals(2, count($betalinger));
 }
开发者ID:jonms90,项目名称:PHPTest,代码行数:9,代码来源:hentBetalingerTest.php


示例10: testFeilPassord3

 function testFeilPassord3()
 {
     // arrange
     $bank = new Bank(new BankDBStub());
     // act
     $innlogging = $bank->sjekkLoggInn("11223312345", "1234567890abcdeABCDE12345678910");
     // assert
     $this->assertEquals("Feil i passord", $innlogging);
 }
开发者ID:jonms90,项目名称:PHPTest,代码行数:9,代码来源:sjekkLoggInnTest.php


示例11: testHentKonto2

 function testHentKonto2()
 {
     // Arrange
     $personnummer = "11010110523";
     $bank = new Bank(new DBStub());
     // Act
     $konti = $bank->hentKonti($personnummer);
     // Assert
     $this->assertEquals("", $konti);
 }
开发者ID:tleirvik,项目名称:TestingBank,代码行数:10,代码来源:hentKontiTest.php


示例12: testHentKundeInfo_FeilPostSted

 /**
  * @author Øyvind Ahlstrøm
  * @version 1.1, 2016.01.26
  * 
  * Denne testen sender et personnnummer som skal trigge "feil" i poststed.
  * @assert string "Feil"s
  */
 public function testHentKundeInfo_FeilPostSted()
 {
     // Arrange
     $bank = new Bank(new DBStub());
     $personnummer = "00000000001";
     // Act
     $resultat = $bank->hentKundeInfo($personnummer);
     // Assert
     $this->assertEquals("Feil postnr", $resultat);
 }
开发者ID:oyvindahlstrom,项目名称:TestingBank,代码行数:17,代码来源:hentKundeInfoTest.php


示例13: testHentIngenSaldo

 public function testHentIngenSaldo()
 {
     //Arrange
     $bank = new Bank(new DBStub());
     $personnummer = '10987654321';
     //Act
     $saldo = $bank->hentSaldi($personnummer);
     //Assert
     $this->assertEmpty($saldo);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:10,代码来源:hentSaldiTest.php


示例14: testEndreKundeInfoMedUgyldigObjekt

 public function testEndreKundeInfoMedUgyldigObjekt()
 {
     // Arrange
     $kunde = new transaksjon();
     $bank = new Bank(new DBStub());
     // Act
     $endreKundeInfo = $bank->endreKundeInfo($kunde);
     // Assert
     $this->assertEquals("Feil", $endreKundeInfo);
 }
开发者ID:tleirvik,项目名称:TestingBank,代码行数:10,代码来源:endreKundeInfoTest.php


示例15: testUtforEnBetalingMedUgyldigTransaksjonsId

 public function testUtforEnBetalingMedUgyldigTransaksjonsId()
 {
     // Arrange
     $TxId = "111";
     $bank = new Bank(new DBStub());
     // Act
     $utforBetaling = $bank->utforBetaling($TxId);
     // Assert
     $this->assertEquals("Feil", $utforBetaling);
 }
开发者ID:tleirvik,项目名称:TestingBank,代码行数:10,代码来源:utforBetalingerTest.php


示例16: testHentGyldigKunde

 public function testHentGyldigKunde()
 {
     //Arrange
     $bank = new Bank(new DBStubSqlite());
     $personnummer = "09048433711";
     //Act
     $kunde = $bank->hentKundeInfo($personnummer);
     //Assert
     $this->assertInstanceOf("kunde", $kunde);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:10,代码来源:hentKundeInfoTest.php


示例17: testHentBetalingMedUgyldigeData

 function testHentBetalingMedUgyldigeData()
 {
     // Arrange
     $personnummer = "12345678909";
     $bank = new Bank(new DBStub());
     // Act
     $betaling = $bank->hentBetalinger($personnummer);
     // Assert
     $this->assertEmpty($betaling);
 }
开发者ID:tleirvik,项目名称:TestingBank,代码行数:10,代码来源:hentBetalingerTest.php


示例18: Bank

 public function testUtførBetalingMedDatabaseFeil()
 {
     //Arrange
     $bank = new Bank(new DBStubSqlite());
     $TxID = 6;
     //Act
     $OK = $bank->utforBetaling($TxID);
     //Assert
     $this->assertEquals("Feil", $OK);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:10,代码来源:utforBetalingTest.php


示例19: 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);
 }
开发者ID:jonms90,项目名称:PHPTest,代码行数:11,代码来源:utforBetalingTest.php


示例20: testRegistrerEnBetalingMedUgyldigeData

 function testRegistrerEnBetalingMedUgyldigeData()
 {
     // Arrange
     $kontonummer = "105010123456";
     $bank = new Bank(new DBStub());
     $transaksjon = "";
     // Act
     $betaling = $bank->registrerBetaling($kontonummer, $transaksjon);
     // Assert
     $this->assertEquals("Feil", $betaling);
 }
开发者ID:tleirvik,项目名称:TestingBank,代码行数:11,代码来源:registrerBetalingTest.php



注:本文中的Bank类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Banner类代码示例发布时间:2022-05-23
下一篇:
PHP BakeTask类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap