[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.135.192.192: ~ $
--TEST--
"empty" test
--TEMPLATE--
{{ string_empty is empty ? 'ok' : 'ko' }}
{{ string_zero is empty ? 'ko' : 'ok' }}
{{ value_null is empty ? 'ok' : 'ko' }}
{{ value_false is empty ? 'ok' : 'ko' }}
{{ value_int_zero is empty ? 'ko' : 'ok' }}
{{ array_empty is empty ? 'ok' : 'ko' }}
{{ array_not_empty is empty ? 'ko' : 'ok' }}
{{ magically_callable is empty ? 'ko' : 'ok' }}
{{ countable_empty is empty ? 'ok' : 'ko' }}
{{ countable_not_empty is empty ? 'ko' : 'ok' }}
{{ tostring_empty is empty ? 'ok' : 'ko' }}
{{ tostring_not_empty is empty ? 'ko' : 'ok' }}
{{ markup_empty is empty ? 'ok' : 'ko' }}
{{ markup_not_empty is empty ? 'ko' : 'ok' }}
--DATA--
return [
    'string_empty' => '', 'string_zero' => '0',
    'value_null' => null, 'value_false' => false, 'value_int_zero' => 0,
    'array_empty' => [], 'array_not_empty' => [1, 2],
    'magically_callable' => new MagicCallStub(),
    'countable_empty' => new CountableStub([]), 'countable_not_empty' => new CountableStub([1, 2]),
    'tostring_empty' => new ToStringStub(''), 'tostring_not_empty' => new ToStringStub('0' /* edge case of using "0" as the string */),
    'markup_empty' => new \Twig\Markup('', 'UTF-8'), 'markup_not_empty' => new \Twig\Markup('test', 'UTF-8'),
]
--EXPECT--
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok

Filemanager

Name Type Size Permission Actions
array.test File 336 B 0644
constant.test File 362 B 0644
defined.test File 2.93 KB 0644
defined_for_attribute.test File 752 B 0644
defined_for_blocks.test File 888 B 0644
defined_for_blocks_with_template.test File 488 B 0644
defined_for_constants.test File 388 B 0644
defined_for_macros.test File 480 B 0644
defined_on_complex_expr.test File 241 B 0644
dynamic_test.test File 213 B 0644
empty.test File 1.26 KB 0644
even.test File 204 B 0644
in.test File 2.08 KB 0644
in_with_objects.test File 321 B 0644
iterable.test File 345 B 0644
null_coalesce.test File 452 B 0644
odd.test File 126 B 0644