Browse Source

fix some skip conditions..

PHP-5.1
foobar 22 years ago
parent
commit
1f3419a4db
  1. 3
      pear/tests/pear_config.phpt
  2. 3
      pear/tests/pear_config_1.1.phpt
  3. 1
      pear/tests/pear_registry.phpt
  4. 2
      pear/tests/pear_registry_1.1.phpt

3
pear/tests/pear_config.phpt

@ -4,6 +4,7 @@ PEAR_Config
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
exit();
}
include 'PEAR/Config.php';
$pv = phpversion() . '';
@ -300,4 +301,4 @@ test_dir: PEAR test directory
umask: Unix file mask
username: PEAR username (for maintainers)
verbose: Debug Log Level
done
done

3
pear/tests/pear_config_1.1.phpt

@ -4,6 +4,7 @@ PEAR_Config v1.1
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
exit();
}
include_once 'PEAR/Config.php';
$pv = phpversion() . '';
@ -390,4 +391,4 @@ test_dir: PEAR test directory
umask: Unix file mask
username: PEAR username (for maintainers)
verbose: Debug Log Level
done
done

1
pear/tests/pear_registry.phpt

@ -4,6 +4,7 @@ PEAR_Registry
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
exit();
}
$statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester';
if (file_exists($statedir)) {

2
pear/tests/pear_registry_1.1.phpt

@ -4,6 +4,7 @@ PEAR_Registry v1.1
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
exit();
}
$statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester';
if (file_exists($statedir)) {
@ -15,6 +16,7 @@ $pv = phpversion() . '';
$av = $pv{0} == '4' ? 'apiversion' : 'apiVersion';
if (!in_array($av, get_class_methods('PEAR_Registry'))) {
echo 'skip';
exit();
}
if (PEAR_Registry::apiVersion() != '1.1') {
echo 'skip';

Loading…
Cancel
Save