سلام وقتی که میخواستم این متد تست کنم به خطا میخورم
public function testItCanFetchSpecificColumns()
{
$this->multipleInsertIntoDb(10);
$this->multipleInsertIntoDb(10,['name'=>'New']);
$result = $this->queryBuilder
->table('bugs')
->where('name','New')
->get(['name','user']);
$this->assertIsArray($result);
$this->assertObjectHasAttribute('name',$result[0]);
$this->assertObjectHasAttribute('user',$result[0]);
$result = json_decode(json_encode($result[0]),true);
$this->assertEquals(['name','user'],array_keys($result));
}
# Error
1) Tests\\Unit\\PDOQueryBuilderTest::testItCanFetchSpecificColumns
Error: Call to undefined method Tests\\Unit\\PDOQueryBuilderTest::assertObjectHasAttribute()