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; } }
?> </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>
/** * 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)); }
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; }