From 61946b30f8dd8a59147f9516b10015a3c89bd407 Mon Sep 17 00:00:00 2001 From: Christian Kerl Date: Wed, 28 Sep 2011 13:56:29 +0200 Subject: [PATCH] initial checkin --- phpunit.xml.dist | 31 +++++++++++++++++++ src/BeSimple/SoapServer/SoapServer.php | 21 +++++++++++++ tests/bootstrap.php | 29 ++++++++++++++++++ vendors.php | 41 ++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 phpunit.xml.dist create mode 100644 src/BeSimple/SoapServer/SoapServer.php create mode 100644 tests/bootstrap.php create mode 100644 vendors.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..6b95145 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,31 @@ + + + + + + ./tests/BeSimple/ + + + + + + benchmark + + + + + + ./src/BeSimple/ + + + diff --git a/src/BeSimple/SoapServer/SoapServer.php b/src/BeSimple/SoapServer/SoapServer.php new file mode 100644 index 0000000..3b17e97 --- /dev/null +++ b/src/BeSimple/SoapServer/SoapServer.php @@ -0,0 +1,21 @@ + + * (c) Francis Besset + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace BeSimple\SoapServer; + +/** + * @author Christian Kerl + */ +class SoapServer extends \SoapServer +{ + +} \ No newline at end of file diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..3fbc18f --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,29 @@ + + * (c) Francis Besset + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +/* + +CAUTION: This file installs the dependencies needed to run the BeSimpleSoapClient test suite. + +https://github.com/BeSimple/BeSimpleSoapClient + +*/ + +if (!is_dir($vendorDir = dirname(__FILE__).'/vendor')) { + mkdir($vendorDir, 0777, true); +} + +$deps = array( + array('besimple-soapcommon', 'http://github.com/BeSimple/BeSimpleSoapCommon.git', 'origin/HEAD'), +); + +foreach ($deps as $dep) { + list($name, $url, $rev) = $dep; + + echo "> Installing/Updating $name\n"; + + $installDir = $vendorDir.'/'.$name; + if (!is_dir($installDir)) { + system(sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir))); + } + + system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev))); +}