PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/replace_invalid_arg.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/replace_invalid_arg.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/replace_invalid_arg.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: 313 bytes
 

Contents

Class file image Download
--TEST-- Exception for invalid argument type in replace call --TEMPLATE-- {{ 'test %foo%'|replace(stdClass) }} --DATA-- return array('stdClass' => new stdClass()) --EXCEPTION-- Twig_Error_Runtime: The "replace" filter expects an array or "Traversable" as replace values, got "stdClass" in "index.twig" at line 2.