#!/usr/bin/env php id = 1; $product1->name = 'Normal Product'; $product1->type = 'normal'; $product2 = new stdClass(); $product2->id = 2; $product2->name = 'Branch Product'; $product2->type = 'branch'; $project1 = new stdClass(); $project1->id = 1; $project1->name = 'Sprint Project'; $project1->model = 'scrum'; $project2 = new stdClass(); $project2->id = 2; $project2->name = 'Kanban Project'; $project2->model = 'kanban'; $bugImagesFile1 = array(); $bugImagesFile2 = array( 'image1.png' => array('title' => 'Bug Screenshot 1'), 'image2.png' => array('title' => 'Bug Screenshot 2'), 'image3.png' => array('title' => 'Bug Screenshot 3'), ); $bugTest = new bugZenTest(); r($bugTest->assignVarsForBatchCreateTest($product1, $project1, $bugImagesFile1)) && p('customFields,titles,hasBranch,hasKanbanExecution') && e('12,0,0,0'); r($bugTest->assignVarsForBatchCreateTest($product2, $project1, $bugImagesFile1)) && p('customFields,titles,hasBranch,hasKanbanExecution') && e('13,0,1,0'); r($bugTest->assignVarsForBatchCreateTest($product1, $project2, $bugImagesFile1)) && p('customFields,titles,hasBranch,hasKanbanExecution') && e('12,0,0,1'); r($bugTest->assignVarsForBatchCreateTest($product1, $project1, $bugImagesFile2)) && p('customFields,titles,hasBranch,hasKanbanExecution') && e('12,3,0,0'); r($bugTest->assignVarsForBatchCreateTest($product2, $project2, $bugImagesFile2)) && p('customFields,titles,hasBranch,hasKanbanExecution') && e('13,3,1,1');