亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? number.test.php

?? Cake Framwork , Excellent
?? PHP
字號(hào):
<?php/* SVN FILE: $Id: number.test.php 7118 2008-06-04 20:49:29Z gwoo $ *//** * Short description for file. * * Long description for file * * PHP versions 4 and 5 * * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> * Copyright 2005-2008, Cake Software Foundation, Inc. *								1785 E. Sahara Avenue, Suite 490-204 *								Las Vegas, Nevada 89104 * *  Licensed under The Open Group Test Suite License *  Redistributions of files must retain the above copyright notice. * * @filesource * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc. * @link			https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests * @package			cake.tests * @subpackage		cake.tests.cases.libs.view.helpers * @since			CakePHP(tm) v 1.2.0.4206 * @version			$Revision: 7118 $ * @modifiedby		$LastChangedBy: gwoo $ * @lastmodified	$Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $ * @license			http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */uses('view'.DS.'helpers'.DS.'app_helper', 'view'.DS.'helper', 'view'.DS.'helpers'.DS.'number');/** * Short description for class. * * @package		cake.tests * @subpackage	cake.tests.cases.libs.view.helpers */class NumberTest extends UnitTestCase {/** * helper property *  * @var mixed null * @access public */	var $helper = null;/** * setUp method *  * @access public * @return void */	function setUp() {		$this->Number =& new NumberHelper();	}/** * testFormatAndCurrency method *  * @access public * @return void */	function testFormatAndCurrency() {		$value = '100100100';		$result = $this->Number->format($value, '#');		$expected = '#100,100,100';		$this->assertEqual($expected, $result);		$result = $this->Number->format($value, 3);		$expected = '100,100,100.000';		$this->assertEqual($expected, $result);		$result = $this->Number->format($value);		$expected = '100,100,100';		$this->assertEqual($expected, $result);		$result = $this->Number->format($value, '-');		$expected = '100-100-100';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value);		$expected = '$100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, '#');		$expected = '#100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, false);		$expected = '100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'USD');		$expected = '$100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '&#8364;100.100.100,00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '&#163;100,100,100.00';		$this->assertEqual($expected, $result);	}/** * testCurrencyPositive method *  * @access public * @return void */	function testCurrencyPositive() {		$value = '100100100';		$result = $this->Number->currency($value);		$expected = '$100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'USD', array('before'=> '#'));		$expected = '#100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, false);		$expected = '100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'USD');		$expected = '$100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '&#8364;100.100.100,00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '&#163;100,100,100.00';		$this->assertEqual($expected, $result);	}/** * testCurrencyNegative method *  * @access public * @return void */	function testCurrencyNegative() {		$value = '-100100100';		$result = $this->Number->currency($value);		$expected = '($100,100,100.00)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '(&#8364;100.100.100,00)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '(&#163;100,100,100.00)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'USD', array('negative'=>'-'));		$expected = '-$100,100,100.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR', array('negative'=>'-'));		$expected = '-&#8364;100.100.100,00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP', array('negative'=>'-'));		$expected = '-&#163;100,100,100.00';		$this->assertEqual($expected, $result);	}/** * testCurrencyCentsPositive method *  * @access public * @return void */	function testCurrencyCentsPositive() {		$value = '0.99';		$result = $this->Number->currency($value, 'USD');		$expected = '99c';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '99c';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '99p';		$this->assertEqual($expected, $result);	}/** * testCurrencyCentsNegative method *  * @access public * @return void */	function testCurrencyCentsNegative() {		$value = '-0.99';		$result = $this->Number->currency($value, 'USD');		$expected = '(99c)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '(99c)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '(99p)';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'USD', array('negative'=>'-'));		$expected = '-99c';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR', array('negative'=>'-'));		$expected = '-99c';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP', array('negative'=>'-'));		$expected = '-99p';		$this->assertEqual($expected, $result);	}/** * testCurrencyZero method *  * @access public * @return void */	function testCurrencyZero() {		$value = '0';		$result = $this->Number->currency($value, 'USD');		$expected = '$0.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'EUR');		$expected = '&#8364;0,00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP');		$expected = '&#163;0.00';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP', array('zero'=> 'FREE!'));		$expected = 'FREE!';		$this->assertEqual($expected, $result);	}/** * testCurrencyOptions method *  * @access public * @return void */	function testCurrencyOptions() {		$value = '1234567.89';		$result = $this->Number->currency($value, null, array('before'=>'GBP'));		$expected = 'GBP1,234,567.89';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP', array('places'=>0));		$expected = '&#163;1,234,568';		$this->assertEqual($expected, $result);		$result = $this->Number->currency($value, 'GBP', array('escape'=>true));		$expected = '&amp;#163;1,234,567.89';		$this->assertEqual($expected, $result);	}/** * testToReadableSize method *  * @access public * @return void */	function testToReadableSize() {		$result = $this->Number->toReadableSize(0);		$expected = '0 Bytes';		$this->assertEqual($expected, $result);		$result = $this->Number->toReadableSize(1);		$expected = '1 Byte';		$this->assertEqual($expected, $result);		$under1KB = 45;		$result = $this->Number->toReadableSize($under1KB);		$expected = $under1KB.' Bytes';		$this->assertEqual($expected, $result);		$under1MB = 1024*1024-1;		$result = $this->Number->toReadableSize($under1MB);		$expected = sprintf("%01.0f", $under1MB/1024).' KB';		$this->assertEqual($expected, $result);		$under1GB = (float) 1024*1024*1024-1;		$result = $this->Number->toReadableSize($under1GB);		$expected = sprintf("%01.2f", $under1GB/1024/1024).' MB';		$this->assertEqual($expected, $result);		$float = (float) 1024*1024*1024*1023-1;		$result = $this->Number->toReadableSize($float);		$expected = sprintf("%01.2f", $float/1024/1024/1024).' GB';		$this->assertEqual($expected, $result);		$float = (float) 1024*1024*1024*1024*1023-1;		$result = $this->Number->toReadableSize($float);		$expected = sprintf("%01.2f", $float/1024/1024/1024/1024).' TB';		$this->assertEqual($expected, $result);	}	function testToPercentage() {		$result = $this->Number->toPercentage(45, 0);		$expected = '45%';		$this->assertEqual($result, $expected);		$result = $this->Number->toPercentage(45, 2);		$expected = '45.00%';		$this->assertEqual($result, $expected);		$result = $this->Number->toPercentage(0, 0);		$expected = '0%';		$this->assertEqual($result, $expected);		$result = $this->Number->toPercentage(0, 4);		$expected = '0.0000%';		$this->assertEqual($result, $expected);	}	function tearDown() {		unset($this->Number);	}}?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一二三| 亚洲天堂成人网| 色久优优欧美色久优优| 麻豆91在线观看| 亚洲一区二区三区免费视频| 国产性色一区二区| 欧美日韩视频一区二区| 成人国产免费视频| 另类调教123区| 亚洲福中文字幕伊人影院| 国产精品你懂的在线| 久久综合狠狠综合久久综合88| 精品视频色一区| 91美女在线看| 成人深夜福利app| 国产在线国偷精品免费看| 丝袜国产日韩另类美女| 亚洲另类中文字| 国产精品乱人伦一区二区| 亚洲精品一区二区三区精华液| 欧美精品国产精品| 在线看日本不卡| 色婷婷综合在线| www.亚洲色图| 成人黄色777网| 国产白丝网站精品污在线入口 | 日韩精品成人一区二区在线| 亚洲久草在线视频| 国产精品久久久久影院亚瑟| 久久久久国产成人精品亚洲午夜| 欧美电影免费观看高清完整版在线| 欧美日韩亚州综合| 欧美性猛交xxxx黑人交| 在线国产电影不卡| 在线精品视频免费观看| 欧美午夜免费电影| 欧美日韩精品一区二区天天拍小说| 99久久er热在这里只有精品15 | 日本一区二区三区久久久久久久久不| 666欧美在线视频| 91精品在线一区二区| 欧美一区二区女人| 精品久久五月天| 久久久国产精品不卡| 亚洲国产精品黑人久久久| 国产精品理论片| 自拍偷拍欧美精品| 尤物在线观看一区| 午夜av一区二区三区| 奇米在线7777在线精品| 久久99精品视频| 国产精品综合一区二区| jlzzjlzz亚洲日本少妇| 色一区在线观看| 欧美色成人综合| 欧美一区二区国产| 久久久天堂av| 中文字幕欧美一| 亚洲一二三四在线观看| 日韩国产在线观看一区| 国内精品写真在线观看| 成人免费毛片高清视频| 91国模大尺度私拍在线视频| 欧美精品久久久久久久多人混战| 图片区日韩欧美亚洲| 美女视频一区在线观看| 国产成人免费视频网站高清观看视频| jlzzjlzz欧美大全| 欧美日韩国产一区二区三区地区| 欧美变态凌虐bdsm| 自拍av一区二区三区| 日本免费新一区视频| 成人小视频免费观看| 欧美视频精品在线| 久久亚洲私人国产精品va媚药| 国产精品国产三级国产普通话99| 亚洲成人资源在线| 国产精选一区二区三区| 欧美性猛交xxxx黑人交| 久久精品人人做| 亚洲一区二区三区自拍| 国产美女视频一区| 欧美视频在线不卡| 国产亚洲污的网站| 亚洲电影视频在线| 岛国一区二区三区| 欧美一区午夜精品| 亚洲精品自拍动漫在线| 激情图片小说一区| 欧美日韩一区二区在线观看| 久久久久综合网| 日本女优在线视频一区二区 | 欧美在线免费观看亚洲| 久久这里只有精品视频网| 亚洲国产视频一区二区| 国产传媒久久文化传媒| 日韩欧美国产电影| 亚洲国产中文字幕| 91在线视频免费观看| 久久久久国产精品人| 日韩国产在线观看| 在线观看日韩高清av| 国产精品嫩草99a| 国产一区亚洲一区| 欧美一区二区黄| 亚洲风情在线资源站| av在线不卡电影| 久久久久久久久久久黄色| 青青草精品视频| 欧美日韩国产首页| 一区二区三区中文字幕| 国产91丝袜在线播放0| 日韩免费一区二区| 午夜成人免费视频| 欧美日韩不卡一区| 亚洲已满18点击进入久久| 色综合欧美在线视频区| 国产精品视频一二三区| 国产精品乡下勾搭老头1| 久久中文娱乐网| 狠狠色狠狠色综合| 久久综合资源网| 激情丁香综合五月| 欧美精品一区二区精品网| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美精品第1页| 日韩av中文在线观看| 91精品国产福利| 强制捆绑调教一区二区| 日韩欧美在线一区二区三区| 三级成人在线视频| 欧美一区二区视频在线观看2022 | 972aa.com艺术欧美| 国产精品高潮呻吟| 波多野结衣欧美| 一区在线播放视频| 色久综合一二码| 亚洲va欧美va人人爽| 欧美久久久久久蜜桃| 日本欧美肥老太交大片| 精品粉嫩aⅴ一区二区三区四区| 麻豆精品一区二区综合av| 久久综合久久综合久久| 国产乱国产乱300精品| 国产精品久久久久桃色tv| 99久久久免费精品国产一区二区| 亚洲男人的天堂av| 欧美色成人综合| 日韩 欧美一区二区三区| 欧美一级在线视频| 国产一区二区不卡老阿姨| 国产精品色哟哟网站| 色综合久久综合网欧美综合网 | 久久激情五月激情| 久久久久国色av免费看影院| 97久久人人超碰| 午夜精品国产更新| 亚洲精品一区二区在线观看| av在线这里只有精品| 亚洲午夜视频在线观看| 日韩欧美一区二区久久婷婷| 国产精品一线二线三线精华| 亚洲色图视频网站| 欧美一区二区三级| 成人性视频免费网站| 亚洲午夜久久久久久久久电影网| 欧美一区二区三区免费| 丁香婷婷综合激情五月色| 亚洲精品一二三| 精品乱码亚洲一区二区不卡| 99精品一区二区三区| 奇米精品一区二区三区在线观看| 中文字幕免费观看一区| 欧美日韩精品三区| 国产精品996| 性欧美疯狂xxxxbbbb| 久久久久久久久岛国免费| 欧美中文一区二区三区| 国产综合久久久久久鬼色| 一区二区在线观看av| 欧美精品一区二区三区蜜桃视频| 色婷婷久久久久swag精品| 国产毛片精品视频| 亚洲bt欧美bt精品| 国产精品美女视频| 日韩亚洲欧美成人一区| 91美女精品福利| 国产一区二区三区观看| 亚洲国产精品一区二区www在线| 久久久av毛片精品| 欧美一区二区三区视频在线观看| 9色porny自拍视频一区二区| 美女看a上一区| 亚洲午夜影视影院在线观看| 国产女同互慰高潮91漫画| 3atv一区二区三区| 91麻豆国产福利在线观看| 国产精品中文字幕一区二区三区| 亚洲成a人片在线观看中文| 中文字幕一区二区三区不卡在线 |