本文整理匯總了PHP中collection::get_record_details方法的典型用法代碼示例。如果您正苦於以下問題:PHP collection::get_record_details方法的具體用法?PHP collection::get_record_details怎麽用?PHP collection::get_record_details使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類collection
的用法示例。
在下文中一共展示了collection::get_record_details方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testGet_record_details
public function testGet_record_details()
{
$file = new File(self::$DI['app'], self::$DI['app']['mediavorus']->guess(__DIR__ . '/../files/cestlafete.jpg'), self::$object);
$record = record_adapter::createFromFile($file, self::$DI['app']);
$details = self::$object->get_record_details();
$this->assertTrue(is_array($details));
foreach ($details as $detail) {
$this->assertTrue(is_array($detail));
$this->assertArrayHasKey('coll_id', $detail);
$this->asserttrue(is_int($detail['coll_id']));
$this->assertArrayHasKey('name', $detail);
$this->asserttrue(is_string($detail['name']));
$this->assertArrayHasKey('amount', $detail);
$this->asserttrue(is_int($detail['amount']));
$this->assertArrayHasKey('size', $detail);
$this->asserttrue(is_int($detail['size']));
}
}