#!/usr/bin/env php getBuildsTest(); r(count($builds)) && p() && e(1); // 步骤1:正常调用,验证返回数组长度为1 r($builds) && p('1:id') && e('1'); // 步骤2:验证返回数组包含版本ID为1的对象 r($builds) && p('1:name') && e('Test build'); // 步骤3:验证版本名称为"Test build" r($builds) && p('1:product') && e('1'); // 步骤4:验证版本所属产品ID为1 r($builds) && p('1:executionName') && e('Test execution'); // 步骤5:验证执行名称