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