company_id = PRIMARY_COMPANY_ID; TTDate::setTimeZone( 'Etc/GMT+8' ); //Force to non-DST timezone. 'PST' isnt actually valid. } public function tearDown(): void { Debug::text( 'Running tearDown(): ', __FILE__, __LINE__, __METHOD__, 10 ); } public function mf( $amount ) { return Misc::MoneyRound( $amount ); } // // // // 2007 // // // function testCR_2007a_BiWeekly_Single_LowIncome() { Debug::text( 'CR - BiWeekly - Beginning of 2007 01-Jan-07: ', __FILE__, __LINE__, __METHOD__, 10 ); $pd_obj = new PayrollDeduction( 'CR', null ); $pd_obj->setDate( strtotime( '01-Jan-07' ) ); $pd_obj->setAnnualPayPeriods( 26 ); //Bi-Weekly $pd_obj->setFederalFilingStatus( 10 ); //Single $pd_obj->setFederalAllowance( 1 ); //$pd_obj->setUserCurrency('CRC'); $pd_obj->setGrossPayPeriodIncome( 260000.00 ); $this->assertEquals( '260000.00', $this->mf( $pd_obj->getGrossPayPeriodIncome() ) ); $this->assertEquals( '3993.85', $this->mf( $pd_obj->getFederalPayPeriodDeductions() ) ); //100.73 } } ?>