本文整理汇总了PHP中Stat::getStealth方法的典型用法代码示例。如果您正苦于以下问题:PHP Stat::getStealth方法的具体用法?PHP Stat::getStealth怎么用?PHP Stat::getStealth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stat
的用法示例。
在下文中一共展示了Stat::getStealth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetStealth
function testGetStealth()
{
//Arrange
$str = 2;
$dex = 2;
$con = 2;
$intel = 2;
$wis = 2;
$cha = 2;
$init = 2;
$max_hp = 2;
$speed = 2;
$ac = 2;
$acrobatics = 2;
$arcana = 2;
$animal_handling = 2;
$athletics = 2;
$deception = 2;
$history = 2;
$insight = 2;
$intimidation = 2;
$investigation = 2;
$medicine = 2;
$nature = 2;
$perception = 2;
$performance = 2;
$persuasion = 2;
$proficiency = 2;
$religion = 2;
$sleight_of_hand = 2;
$stealth = 2;
$survival = 2;
$test_stat = new Stat($ac, $acrobatics, $animal_handling, $arcana, $athletics, $cha, $con, $deception, $dex, $history, $init, $insight, $intel, $intimidation, $investigation, $max_hp, $medicine, $nature, $perception, $performance, $persuasion, $proficiency, $religion, $speed, $sleight_of_hand, $stealth, $str, $survival, $wis);
//Act
$result = $test_stat->getStealth();
//Assert
$this->assertEquals($stealth, $result);
}