当前位置: 首页>>代码示例>>PHP>>正文


PHP Bank::endreKundeInfo方法代码示例

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


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

示例1: 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

示例2: 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

示例3: test_endreKundeInfoFeil2

 public function test_endreKundeInfoFeil2()
 {
     //Arrange
     $bank = new Bank(new BankDBStub());
     $kunde = new Kunde();
     $kunde->personnummer = "19069012345";
     $kunde->fornavn = "Jon";
     $kunde->etternavn = "Olsen";
     $kunde->adresse = "Oslogate 1";
     $kunde->postnr = "0863";
     // feil postnr for test
     $kunde->telefonnr = "99887766";
     $kunde->passord = "1234abc";
     //Act
     $endring = $bank->endreKundeInfo($kunde);
     //Assert
     $this->assertEquals("Feil", $endring);
 }
开发者ID:jonms90,项目名称:PHPTest,代码行数:18,代码来源:adminEndreKundeInfoTest.php

示例4: Bank

 /**
  * @author Øyvind Ahlstrøm
  * @version 1.0, 2016.01.25
  * 
  * Denne testen sender et kundeobjekt til stub. Dette objektet har et postnr
  * som ikke samsvarer med statisk postnummer i stub.
  * @assert string "Feil"
  */
 function testEndreKundeInfo_postStedFeil()
 {
     // Arrange
     $bank = new Bank(new DBStub());
     $kunde = new Kunde();
     $kunde->personnummer = "11111122222";
     $kunde->fornavn = "Helge";
     $kunde->etternavn = "Halvorsen";
     $kunde->adresse = "Oslo gate 10";
     $kunde->postnr = "0000";
     $kunde->poststed = "Oslo";
     $kunde->telefonnr = "99887766";
     $kunde->passord = "Passord";
     // Act
     $endre = $bank->endreKundeInfo($kunde);
     // Assert
     $this->assertEquals("Feil", $endre);
 }
开发者ID:oyvindahlstrom,项目名称:TestingBank,代码行数:26,代码来源:endreKundeInfoBTest.php

示例5: testEndreKundeInfoFEIL

 public function testEndreKundeInfoFEIL()
 {
     //arrange
     $bankLogikk = new Bank(new DBStub());
     $kunde = new kunde();
     $kunde->personnummer = -010101234567;
     $kunde->fornavn = "Kari";
     $kunde->etternavn = "Olsen";
     $kunde->adresse = "Jallaveien 69";
     $kunde->postnr = "6969";
     $kunde->poststed = "Oslo";
     $kunde->telefonnr = "23657493";
     $kunde->passord = "KariOlsen65";
     //act
     $OK = $bankLogikk->endreKundeInfo($kunde);
     //assert
     $this->assertEquals("Feil", $OK);
 }
开发者ID:OutCrack,项目名称:Testing-av-Programvare,代码行数:18,代码来源:bankLogikkTest.php

示例6: testEndreKundeInfo

 public function testEndreKundeInfo()
 {
     $bank = new Bank(new BankDatabaseStub());
     $kunde = new Kunde('12345678901', "geir", "geirset", "gata 3", 1212, "geirset", "12345678", "heisann");
     static::assertEquals($bank->endreKundeInfo(2), "OK");
     $kunde->personnummer = '12345678945';
     static::assertEquals($bank->endreKundeInfo(1), "Feil");
 }
开发者ID:aleksanderaleksic,项目名称:feilfri-bank,代码行数:8,代码来源:BankTest.php

示例7: testOk

 public function testOk()
 {
     //arrange
     $kunde = new kunde();
     $kunde->poststed = "Oslo";
     $kunde->postnr = "1234";
     $bank = new Bank(new DBStub());
     //act
     $res = $bank->endreKundeInfo($kunde);
     //assert
     $this->assertEquals("OK", $res);
 }
开发者ID:Jagjitcsingh,项目名称:TestBankApplication,代码行数:12,代码来源:endreKundeInfoTest.php


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