示例#1
0
 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
0
文件: error.php 项目: schelmo/core
    ?>
</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
0
 /**
  * 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
0
文件: case.php 项目: banks/unittest
 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;
 }