PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tests/constant.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tests/constant.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tests/constant.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 372 bytes
 

Contents

Class file image Download
--TEST-- "const" test --TEMPLATE-- {{ 8 is constant('E_NOTICE') ? 'ok' : 'no' }} {{ 'bar' is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }} {{ value is constant('TwigTestFoo::BAR_NAME') ? 'ok' : 'no' }} {{ 2 is constant('ARRAY_AS_PROPS', object) ? 'ok' : 'no' }} --DATA-- return array('value' => 'bar', 'object' => new ArrayObject(array('hi'))); --EXPECT-- ok ok ok ok