/** * @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); }