コード例 #1
0
ファイル: PdoBackendQueryTest.php プロジェクト: etu/php-tools
 /**
  * @test
  */
 public function shouldFetchRow()
 {
     // Fixture
     $this->target->query('SELECT * FROM names');
     // Test
     $actual = $this->target->fetchRow();
     // Assert
     $this->assertEquals((object) ['id' => 1, 'name' => 'Alice'], $actual);
 }