/** * @test * 2016-11-17 */ public function t01() { /** @var T $t */ $t = df_trans(310); /** @var OP $op */ $op = dfp_by_trans($t); /** @var bool $isTest */ $isTest = dfp_is_test($op); $this->assertTrue(is_bool($isTest)); }
/** * 2016-11-17 * @param T|int|null $t [optional] * @param bool|mixed $rt [optional] * @param bool|mixed $rf [optional] * @return bool|mixed */ function df_trans_is_test($t = null, $rt = true, $rf = false) { return dfp_is_test(dfp_by_trans(df_trans($t))) ? $rt : $rf; }
/** * 2016-05-23 * @used-by https://code.dmitry-fedyuk.com/m2e/2checkout/blob/1.0.4/view/frontend/templates/info.phtml#L5 * @used-by \Dfe\TwoCheckout\Block\Info::_prepareSpecificInformation() * @param bool|mixed $t [optional] * @param bool|mixed $f [optional] * @return bool|mixed */ public function isTest($t = true, $f = false) { return dfc($this, function () { return dfp_is_test($this->ii()); }) ? $t : $f; }