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


PHP Admin::hentAlleKonti方法代码示例

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


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

示例1: testEndreGyldigKonto

 public function testEndreGyldigKonto()
 {
     //Arrange
     $admin = new Admin(new adminDBStubSqlite());
     //Act
     $konti = $admin->hentAlleKonti();
     //Assert
     $this->assertCount(5, $konti);
     $this->assertInstanceOf("konto", $konti[0]);
     $this->assertInstanceOf("konto", $konti[1]);
     $this->assertInstanceOf("konto", $konti[2]);
     $this->assertInstanceOf("konto", $konti[3]);
     $this->assertInstanceOf("konto", $konti[4]);
 }
开发者ID:kringon,项目名称:scotch-box,代码行数:14,代码来源:hentAlleKontiTest.php

示例2: Admin

 function test_HentAlleKonti()
 {
     $adminLogikk = new Admin(new AdminDBStub());
     $konto = $adminLogikk->hentAlleKonti();
     $this->assertEquals("105010123456", $konto[0]->kontonummer);
     $this->assertEquals("01010110523", $konto[0]->personnummer);
     $this->assertEquals("720", $konto[0]->saldo);
     $this->assertEquals("Lonnskonto", $konto[0]->type);
     $this->assertEquals("NOK", $konto[0]->valuta);
     $this->assertEquals("105010123456", $konto[1]->kontonummer);
     $this->assertEquals("01010110523", $konto[1]->personnummer);
     $this->assertEquals("100500", $konto[1]->saldo);
     $this->assertEquals("Sparekonto", $konto[1]->type);
     $this->assertEquals("NOK", $konto[1]->valuta);
     $this->assertEquals("22334412345", $konto[2]->kontonummer);
     $this->assertEquals("01010110523", $konto[2]->personnummer);
     $this->assertEquals("10234.5", $konto[2]->saldo);
     $this->assertEquals("Brukskonto", $konto[2]->type);
     $this->assertEquals("NOK", $konto[2]->valuta);
 }
开发者ID:jonms90,项目名称:PHPTest,代码行数:20,代码来源:hentKontoTest.php

示例3: testHentAlleKonti

 function testHentAlleKonti()
 {
     $adminDB = new Admin(new ADBstub());
     $kunde = new kunde();
     $kunde->personnummer = "12345678901";
     $kunde1 = new kunde();
     $kunde->personnummer = "12345678902";
     $kunde2 = new kunde();
     $kunde->personnummer = "12345678903";
     $kunder = array($kunde, $kunde1, $kunde2);
     $result = $adminDB->hentAlleKonti();
     $this->assertEquals($kunder, $result);
 }
开发者ID:Adsime,项目名称:TestingCourse,代码行数:13,代码来源:adminLogikkTest.php

示例4: Admin

 function test_hentAlleKonti_OK()
 {
     //arrange
     $adminLogikk = new Admin(new adminDatabaseStub());
     //act
     $konti = $adminLogikk->hentAlleKonti();
     //assert
     $this->assertEquals("123123123", $konti[0]);
     $this->assertEquals("124124123", $konti[1]);
     $this->assertEquals("124123123", $konti[2]);
 }
开发者ID:Jagjitcsingh,项目名称:TestBankApplication,代码行数:11,代码来源:adminTest.php

示例5: Admin

 /**
  * @author Øyvind Ahlstrøm
  * @version 1.0, 2016.01.17
  * 
  * Denne testen tar inn et array med tre objekter av typen konto og tester
  * om antall objekter i array er riktig med riktig data.
  * @assert 3
  * @assert object data
  */
 function testAlleKonti_hentAntall()
 {
     // Arrange
     $admin = new Admin(new DBStubAdmin());
     // Act
     $resultat = $admin->hentAlleKonti();
     // Assert
     $this->assertEquals(3, count($resultat));
     $this->assertEquals("105010123456", $resultat[0]->kontonummer);
     $this->assertEquals("105020123456", $resultat[1]->kontonummer);
     $this->assertEquals("22334412345", $resultat[2]->kontonummer);
 }
开发者ID:oyvindahlstrom,项目名称:TestingBank,代码行数:21,代码来源:hentAlleKontiTest.php

示例6: testHentAlleKonti

 /**
  * @covers Admin::hentAlleKonti
  * @todo   Implement testHentAlleKonti().
  */
 public function testHentAlleKonti()
 {
     //arrange
     $adminLogikk = new Admin(new DBStub());
     //act
     $konti = $adminLogikk->hentAlleKonti();
     //assert
     $this->assertEquals("15267839781", $konti[0]->personnummer);
     $this->assertEquals("21580625941", $konti[0]->kontonummer);
     $this->assertEquals("100,00", $konti[0]->saldo);
     $this->assertEquals("Brukskonto", $konti[0]->type);
     $this->assertEquals("Kroner", $konti[0]->valuta);
     $this->assertEquals("15267839782", $konti[1]->personnummer);
     $this->assertEquals("21580625942", $konti[1]->kontonummer);
     $this->assertEquals("200,00", $konti[1]->saldo);
     $this->assertEquals("Sparekonto", $konti[1]->type);
     $this->assertEquals("Kroner", $konti[1]->valuta);
     $this->assertEquals("15267839783", $konti[2]->personnummer);
     $this->assertEquals("21580625943", $konti[2]->kontonummer);
     $this->assertEquals("300,00", $konti[2]->saldo);
     $this->assertEquals("Kreditkonto", $konti[2]->type);
     $this->assertEquals("Kroner", $konti[2]->valuta);
 }
开发者ID:OutCrack,项目名称:Testing-av-Programvare,代码行数:27,代码来源:adminLogikkTest.php


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