]> granicus.if.org Git - php/commitdiff
Added skip condition for PHP 5.0
authorIlia Alshanetsky <iliaa@php.net>
Thu, 30 Sep 2004 21:54:28 +0000 (21:54 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 30 Sep 2004 21:54:28 +0000 (21:54 +0000)
ext/reflection/tests/parameters_001.phpt

index 709944677f1b28532cca8679f0b19638ac79adf9..fb22a22a95b7617651849fcca181d71dec403e31 100755 (executable)
@@ -1,5 +1,13 @@
 --TEST--
 Check for parameter being optional
+--SKIPIF--
+<?php
+       class a { function b() {} }
+       $a = new ReflectionMethod('a','b');
+       if (!method_exists($a, 'getNumberOfRequiredParameters')) {
+               exit("skip getNumberOfRequiredParameters is only in PHP 5.1+");
+       }
+?>
 --FILE--
 <?php