xref: /PHP-7.2/ext/filter/tests/bug67167.01.phpt (revision f1d7e3ca)
1--TEST--
2Bug #67167: object with VALIDATE_BOOLEAN and NULL_ON_FAILURE
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7var_dump(filter_var(
8    new \StdClass(),
9    FILTER_VALIDATE_BOOLEAN,
10    FILTER_NULL_ON_FAILURE
11));
12--EXPECTF--
13NULL
14