1--TEST-- 2Acquire callable to assert() 3--FILE-- 4<?php 5 6namespace Foo; 7 8$assert = assert(...); 9$assert(1 == 1.0, "Message 1"); 10try { 11 $assert(1 == 2.0, "Message 2"); 12} catch (\AssertionError $e) { 13 echo $e->getMessage(), "\n"; 14} 15 16try { 17 assert(false && strlen(...)); 18} catch (\AssertionError $e) { 19 echo $e->getMessage(), "\n"; 20} 21 22?> 23--EXPECT-- 24Message 2 25assert(false && strlen(...)) 26