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

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

update php

File size: 286 bytes
Line 
1--TEST--
2Call function with correct number of arguments
3--FILE--
4<?php
5function foo() { }
6foo();
7
8function bar($foo, $bar) { }
9bar(1, 2);
10
11function bat(int $foo, string $bar) { }
12bat(123, "foo");
13bat("123", "foo");
14
15$fp = fopen(__FILE__, "r");
16fclose($fp);
17
18echo "done";
19--EXPECT--
20done
Note: See TracBrowser for help on using the repository browser.