#!/usr/bin/env php 1, 'type' => 'normal', 'name' => 'Normal Product'); r($treeTest->getBranchesTest($normalProduct, 'story', 0)) && p() && e('0'); // 测试用例2:多分支产品在story视图类型下获取分支 $branchProduct = (object)array('id' => 2, 'type' => 'branch', 'name' => 'Branch Product'); r($treeTest->getBranchesTest($branchProduct, 'story', 0)) && p() && e('0'); // 测试用例3:多分支产品在bug视图类型下获取分支 $platformProduct = (object)array('id' => 3, 'type' => 'platform', 'name' => 'Platform Product'); r($treeTest->getBranchesTest($platformProduct, 'bug', 0)) && p() && e('0'); // 测试用例4:非story/bug/case视图类型的产品获取分支 $branchProduct = (object)array('id' => 4, 'type' => 'branch', 'name' => 'Branch Product'); r($treeTest->getBranchesTest($branchProduct, 'task', 0)) && p() && e('0'); // 测试用例5:case视图类型的多分支产品获取分支 $platformProduct = (object)array('id' => 5, 'type' => 'platform', 'name' => 'Platform Product'); r($treeTest->getBranchesTest($platformProduct, 'case', 0)) && p() && e('0');