X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FGlobalFunctions%2FwfArrayFilterTest.php;h=bc930be45d802d6eec590c5aa522a555ca123d30;hb=9b0c621d7f982c66c02ab4ddedc25b51040aaeb9;hp=388aee79d1e6ad67ed2eaef7c45131bfa6a848c9;hpb=d89e006b74ab057868f4bfe7b9e682eb02c538a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/GlobalFunctions/wfArrayFilterTest.php b/tests/phpunit/includes/GlobalFunctions/wfArrayFilterTest.php index 388aee79d1..bc930be45d 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfArrayFilterTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfArrayFilterTest.php @@ -1,7 +1,13 @@ hideDeprecated( 'wfArrayFilter' ); $arr = [ 'a' => 1, 'b' => 2, 'c' => 3 ]; $filtered = wfArrayFilter( $arr, function ( $val, $key ) { return $key !== 'b'; @@ -22,6 +28,7 @@ class WfArrayFilterTest extends \PHPUnit_Framework_TestCase { } public function testWfArrayFilterByKey() { + $this->hideDeprecated( 'wfArrayFilterByKey' ); $arr = [ 'a' => 1, 'b' => 2, 'c' => 3 ]; $filtered = wfArrayFilterByKey( $arr, function ( $key ) { return $key !== 'b';