本文整理汇总了PHP中TestHelper::emptyDar方法的典型用法代码示例。如果您正苦于以下问题:PHP TestHelper::emptyDar方法的具体用法?PHP TestHelper::emptyDar怎么用?PHP TestHelper::emptyDar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestHelper
的用法示例。
在下文中一共展示了TestHelper::emptyDar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: returnsEmptyDar
/**
* Ease returns of empty DatabaseAccessResult
*
* Example:
* stub('Dao')->getStuff()->returnsEmptyDar()
*/
public function returnsEmptyDar()
{
return $this->returns(TestHelper::emptyDar());
}
示例2: itReturnsEmptyArrayWhenNoSharedFields
public function itReturnsEmptyArrayWhenNoSharedFields()
{
$project_id = 1;
$dar = TestHelper::emptyDar();
$factory = $this->GivenSearchAllSharedTargetsOfProjectReturnsDar($dar, $project_id);
$this->ThenICompareProjectSharedFieldsWithExpectedResult($factory, $project_id, array());
}
示例3: itDoesntRemoveTheGerritReservedKeys
public function itDoesntRemoveTheGerritReservedKeys()
{
$this->user_manager->setReturnValueAt(0, 'getUsersWithSshKey', TestHelper::arrayToDar(new PFUser(array('authorized_keys' => $this->key1, 'user_name' => 'john_do'))));
$this->mass_dumper->dumpSSHKeys();
$keyfile = 'forge__gerrit_1@0.pub';
touch($this->_glAdmDir . '/keydir/' . $keyfile);
$this->gitExec->add($this->_glAdmDir . '/keydir/' . $keyfile);
$this->gitExec->commit("Gerrit key");
$this->assertEmptyGitStatus();
$this->user_manager->setReturnValueAt(1, 'getUsersWithSshKey', TestHelper::emptyDar());
$this->mass_dumper->dumpSSHKeys();
$this->assertFalse(is_file($this->_glAdmDir . '/keydir/john_do@0.pub'));
$this->assertTrue(is_file($this->_glAdmDir . '/keydir/' . $keyfile));
}