/** * This method will return <b>true</b> when the parameter is passed by * reference. * * @return boolean * @since 0.9.5 */ public function isPassedByReference() { return $this->_formalParameter->isPassedByReference(); }
/** * testIsPassedByReferenceCanBeSetToTrue * * @return void * @group pdepend * @group pdepend::ast * @group unittest */ public function testIsPassedByReferenceCanBeSetToTrue() { $param = new PHP_Depend_Code_ASTFormalParameter(); $param->setPassedByReference(); self::assertTrue($param->isPassedByReference()); }