Browse Source

fix these tests

PEAR_1_4DEV
Sterling Hughes 23 years ago
parent
commit
62ea4ebd92
  1. 2
      tests/classes/bug24399.phpt
  2. 4
      tests/classes/factory_and_singleton_002.phpt
  3. 3
      tests/classes/factory_and_singleton_005.phpt
  4. 3
      tests/classes/factory_and_singleton_006.phpt

2
tests/classes/bug24399.phpt

@ -1,7 +1,5 @@
--TEST--
Bug #24399: is_subclass_of() crashes when parent class doesn't exist.
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class dooh {

4
tests/classes/factory_and_singleton_002.phpt

@ -19,7 +19,7 @@ class test {
}
}
protected function __construct($x) {
function __construct($x) {
test::$cnt++;
$this->x = $x;
}
@ -28,7 +28,7 @@ class test {
test::$test = NULL;
}
protected function __destruct() {
function __destruct() {
test::$cnt--;
}

3
tests/classes/factory_and_singleton_005.phpt

@ -16,4 +16,5 @@ $obj = NULL;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Call to protected destructor from context '' %sfactory_and_singleton_005.php on line %d
Warning: Call to protected destructor from context '' in %sfactory_and_singleton_005.php on line %d
Done

3
tests/classes/factory_and_singleton_006.phpt

@ -16,4 +16,5 @@ $obj = NULL;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Call to private destructor from context '' %sfactory_and_singleton_006.php on line %d
Warning: Call to private destructor from context '' in %sfactory_and_singleton_006.php on line %d
Done
Loading…
Cancel
Save