本文整理汇总了PHP中Kohana::dump方法的典型用法代码示例。如果您正苦于以下问题:PHP Kohana::dump方法的具体用法?PHP Kohana::dump怎么用?PHP Kohana::dump使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kohana
的用法示例。
在下文中一共展示了Kohana::dump方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($method, $param)
{
$this->param = new ReflectionParameter($method, $param);
$this->name = $this->param->name;
if ($this->param->isDefaultValueAvailable()) {
$this->default = Kohana::dump($this->param->getDefaultValue());
}
if ($this->param->isPassedByReference()) {
$this->reference = TRUE;
}
if ($this->param->isOptional()) {
$this->optional = TRUE;
}
}
示例2: foreach
?>
</a></h3>
<div id="<?php
echo $env_id;
?>
" class="collapsed">
<table cellspacing="0">
<?php
foreach ($GLOBALS[$var] as $key => $value) {
?>
<tr>
<td><code><?php
echo $key;
?>
</code></td>
<td><pre><?php
echo Kohana::dump($value);
?>
</pre></td>
</tr>
<?php
}
?>
</table>
</div>
<?php
}
?>
</div>
</div>
示例3: test_dump
/**
* Tests Kohana::dump()
*
* @test
* @dataProvider provider_dump
* @covers Kohana::dump
* @covers Kohana::_dump
* @param object $exception exception to test
* @param string $expected expected output
*/
public function test_dump($input, $length, $expected)
{
$this->assertEquals($expected, Kohana::dump($input, $length));
}
示例4: assert_not_regex_match
public function assert_not_regex_match($value, $regex, $debug = NULL)
{
if (preg_match($regex, $value)) {
throw new UnitTest_Exception(':method: Expected :value to not be matched by :pattern', array(':method' => __FUNCTION__, ':value' => Kohana::dump($value), ':regex' => Kohana::dump($regex)), $debug);
}
$this->assertion_count++;
return $this;
}