rm
authorMichael Wallner <mike@php.net>
Thu, 21 Nov 2013 08:51:07 +0000 (08:51 +0000)
committerMichael Wallner <mike@php.net>
Thu, 21 Nov 2013 08:51:07 +0000 (08:51 +0000)
tests/object001.phpt [deleted file]
tests/object002.phpt [deleted file]
tests/object003.phpt [deleted file]
tests/object004.phpt [deleted file]
tests/object005.phpt [deleted file]
tests/object006.phpt [deleted file]
tests/object007.phpt [deleted file]
tests/object008.phpt [deleted file]
tests/object009.phpt [deleted file]

diff --git a/tests/object001.phpt b/tests/object001.phpt
deleted file mode 100644 (file)
index fe3d012..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-object default error handling
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-var_dump(null === http\Object::getDefaultErrorHandling());
-http\Object::setDefaultErrorHandling(http\Object::EH_SUPPRESS);
-var_dump(http\Object::EH_SUPPRESS === http\Object::getDefaultErrorHandling());
-
-?>
-Done
---EXPECT--
-Test
-bool(true)
-bool(true)
-Done
diff --git a/tests/object002.phpt b/tests/object002.phpt
deleted file mode 100644 (file)
index b3e3743..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
---TEST--
-object instance error handling
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-$eh = new eh;
-var_dump(null === $eh->getErrorHandling());
-$eh->setErrorHandling(eh::EH_SUPPRESS);
-var_dump(eh::EH_SUPPRESS === $eh->getErrorHandling());
-
-?>
-Done
---EXPECT--
-Test
-bool(true)
-bool(true)
-Done
diff --git a/tests/object003.phpt b/tests/object003.phpt
deleted file mode 100644 (file)
index 842bb0d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-object error suppression
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-http\Object::setDefaultErrorHandling(http\Object::EH_SUPPRESS);
-$o = new eh;
-$o->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "suppress");
-
-?>
-Done
---EXPECT--
-Test
-Done
diff --git a/tests/object004.phpt b/tests/object004.phpt
deleted file mode 100644 (file)
index 93a062d..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-object error exception
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-http\Object::setDefaultErrorHandling(http\Object::EH_THROW);
-$o = new eh;
-$o->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "exception");
-
-?>
-Done
---EXPECTF--
-Test
-
-Fatal error: Uncaught exception 'http\Exception' with message 'exception' in %s:%d
-Stack trace:
-#0 %s(%d): http\Object->triggerError(512, 0, 'exception')
-#1 {main}
-  thrown in %s on line %d
diff --git a/tests/object005.phpt b/tests/object005.phpt
deleted file mode 100644 (file)
index 0330d32..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-object normal error
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-http\Object::setDefaultErrorHandling(http\Object::EH_NORMAL);
-$o = new eh;
-$o->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "warning");
-
-?>
-Done
---EXPECTF--
-Test
-
-Warning: http\Object::triggerError(): warning in %s on line %d
-Done
diff --git a/tests/object006.phpt b/tests/object006.phpt
deleted file mode 100644 (file)
index a11529d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-object error suppression2
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-$eh = new eh;
-$eh->setErrorHandling(http\Object::EH_SUPPRESS);
-$eh->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "suppress");
-
-?>
-Done
---EXPECTF--
-Test
-Done
diff --git a/tests/object007.phpt b/tests/object007.phpt
deleted file mode 100644 (file)
index 475b4b8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-object error exception2
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-$eh = new eh;
-$eh->setErrorHandling(http\Object::EH_THROW);
-$eh->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "exception");
-
-?>
-Done
---EXPECTF--
-Test
-
-Fatal error: Uncaught exception 'http\Exception' with message 'exception' in %s:%d
-Stack trace:
-#0 /home/mike/src/pecl_http-DEV_2.svn/tests/object007.php(9): http\Object->triggerError(512, 0, 'exception')
-#1 {main}
-  thrown in %s on line %d
diff --git a/tests/object008.phpt b/tests/object008.phpt
deleted file mode 100644 (file)
index 6dff7d5..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-object normal error2
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-class eh extends http\Object {}
-
-$eh = new eh;
-$eh->setErrorHandling(http\Object::EH_NORMAL);
-$eh->triggerError(E_USER_WARNING, http\Exception::E_UNKNOWN, "warning");
-
-?>
-Done
---EXPECTF--
-Test
-
-Warning: http\Object::triggerError(): warning in %s on line %d
-Done
diff --git a/tests/object009.phpt b/tests/object009.phpt
deleted file mode 100644 (file)
index 4d6e574..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-object unknown error handling
---SKIPIF--
-<?php 
-include "skipif.inc";
-?>
---FILE--
-<?php 
-
-echo "Test\n";
-
-http\Object::setDefaultErrorHandling(12345);
-
-class eh extends http\Object {}
-
-$eh = new eh;
-$eh->setErrorHandling(12345);
-
-?>
-Done
---EXPECTF--
-Test
-
-Warning: http\Object::setDefaultErrorHandling(): unknown error handling code (12345) in %s on line %d
-
-Warning: http\Object::setErrorHandling(): unknown error handling code (12345) in %s on line %d
-Done