/** * getParameters() test * * Call as method call * * Returns: array */ public function testGetParameters() { $r = new Reflection\Prototype($this->_r->getReturnValue(), $this->_parameters); $p = $r->getParameters(); $this->assertTrue(is_array($p)); foreach ($p as $parameter) { $this->assertTrue($parameter instanceof Reflection\ReflectionParameter); } $this->assertTrue($p === $this->_parameters); }
/** * Return true if function is one way (return nothing) * * @param AbstractFunction $function * @param Prototype $prototype * @return bool */ public function isFunctionOneWay(AbstractFunction $function, Prototype $prototype) { return $prototype->getReturnType() == 'void'; }