PHP Classes

File: libs/Twig/test/Twig/Tests/Fixtures/filters/number_format_default.test

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/test/Twig/Tests/Fixtures/filters/number_format_default.test   Download  
File: libs/Twig/test/Twig/Tests/Fixtures/filters/number_format_default.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 422 bytes
 

Contents

Class file image Download
--TEST-- "number_format" filter with defaults. --TEMPLATE-- {{ 20|number_format }} {{ 20.25|number_format }} {{ 20.25|number_format(1) }} {{ 20.25|number_format(2, ',') }} {{ 1020.25|number_format }} {{ 1020.25|number_format(2, ',') }} {{ 1020.25|number_format(2, ',', '.') }} --DATA-- $twig->getExtension('core')->setNumberFormat(2, '!', '='); return array(); --EXPECT-- 20!00 20!25 20!3 20,25 1=020!25 1=020,25 1.020,25