Example #1
0
 /**
  * __construct() test
  *
  * Call as method call
  *
  * Expects:
  * - class:
  * - r:
  * - namespace: Optional;
  * - argv: Optional; has default;
  *
  * Returns: void
  */
 public function test__construct()
 {
     $r = new Reflection\ReflectionMethod($this->_class, $this->_method);
     $this->assertTrue($r instanceof Reflection\ReflectionMethod);
     $this->assertTrue($r instanceof Reflection\AbstractFunction);
     $r = new Reflection\ReflectionMethod($this->_class, $this->_method, 'namespace');
     $this->assertEquals('namespace', $r->getNamespace());
 }