]> granicus.if.org Git - php/commitdiff
Closure::fromCallable(): Fix test files and names
authorNikita Popov <nikic@php.net>
Tue, 5 Jul 2016 12:58:29 +0000 (14:58 +0200)
committerNikita Popov <nikic@php.net>
Tue, 5 Jul 2016 13:13:51 +0000 (15:13 +0200)
Zend/tests/closures/closure_from_callable.inc [moved from Zend/tests/closures/cloure_from_callbable.inc with 100% similarity]
Zend/tests/closures/closure_from_callable_basic.phpt [moved from Zend/tests/closures/cloure_from_callbable_basic.phpt with 97% similarity]
Zend/tests/closures/closure_from_callable_error.phpt [moved from Zend/tests/closures/cloure_from_callbable_error.phpt with 98% similarity]
Zend/tests/closures/closure_from_callable_reflection.phpt [moved from Zend/tests/closures/cloure_from_callbable_reflection.phpt with 88% similarity]

similarity index 97%
rename from Zend/tests/closures/cloure_from_callbable_basic.phpt
rename to Zend/tests/closures/closure_from_callable_basic.phpt
index c498a9644b064667f4927fbbe235f2141eae635d..2561bbfaa6dd6037b79ff670203c601ddec08380 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-Testing closure() functionality
+Testing Closure::fromCallable() functionality: Basic
 --FILE--
 <?php
 
-include('cloure_from_callbable.inc');
+include('closure_from_callable.inc');
 
 echo 'Access public static function';
 $fn = Closure::fromCallable(['Foo', 'publicStaticFunction']);
similarity index 98%
rename from Zend/tests/closures/cloure_from_callbable_error.phpt
rename to Zend/tests/closures/closure_from_callable_error.phpt
index 79fbf147573ce2e8647f98293e9592e03c5721f1..d9db90bcad0a5c2f2fcfa77625585c7149cad790 100644 (file)
@@ -1,9 +1,9 @@
 --TEST--
-Testing closure() functionality
+Testing Closure::fromCallable() functionality: Errors
 --FILE--
 <?php
 
-include('cloure_from_callbable.inc');
+include('closure_from_callable.inc');
 
 echo 'Cannot access privateInstance method statically'."\n";
 try {
similarity index 88%
rename from Zend/tests/closures/cloure_from_callbable_reflection.phpt
rename to Zend/tests/closures/closure_from_callable_reflection.phpt
index 0d2dc4980b77ad5c81efcafa94a84a023cd98774..48e1e77670a33e4c71b1ecbffeb80b3e034a16f1 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
-Imagick::readImage test
---SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+Testing Closure::fromCallable() functionality: Reflection
 --FILE--
 <?php