source: src/router/php7/Zend/tests/function_arguments/argument_count_incorrect_internal_strict.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 405 bytes
Line 
1--TEST--
2Call internal function with incorrect number of arguments with strict types
3--FILE--
4<?php
5declare(strict_types=1);
6try {
7        substr("foo");
8} catch (\Error $e) {
9        echo get_class($e) . PHP_EOL;
10        echo $e->getMessage() . PHP_EOL;
11}
12
13array_diff([]);
14--EXPECTF--
15ArgumentCountError
16substr() expects at least 2 parameters, 1 given
17
18Warning: array_diff(): at least 2 parameters are required, 1 given in %s
Note: See TracBrowser for help on using the repository browser.