Permalink
Browse files

initial checkin

  • Loading branch information...
0 parents commit 61946b30f8dd8a59147f9516b10015a3c89bd407 @christiankerl christiankerl committed Sep 28, 2011
Showing with 122 additions and 0 deletions.
  1. +31 −0 phpunit.xml.dist
  2. +21 −0 src/BeSimple/SoapServer/SoapServer.php
  3. +29 −0 tests/bootstrap.php
  4. +41 −0 vendors.php
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="tests/bootstrap.php"
+>
+ <testsuites>
+ <testsuite name="BeSimple\SoapServer Test Suite">
+ <directory>./tests/BeSimple/</directory>
+ </testsuite>
+ </testsuites>
+
+ <groups>
+ <exclude>
+ <group>benchmark</group>
+ </exclude>
+ </groups>
+
+ <filter>
+ <whitelist>
+ <directory>./src/BeSimple/</directory>
+ </whitelist>
+ </filter>
+</phpunit>
@@ -0,0 +1,21 @@
+<?php
+
+/*
+ * This file is part of the BeSimpleSoapServer.
+ *
+ * (c) Christian Kerl <christian-kerl@web.de>
+ * (c) Francis Besset <francis.besset@gmail.com>
+ *
+ * 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
+{
+
+}
@@ -0,0 +1,29 @@
+<?php
+
+error_reporting(E_ALL | E_STRICT);
+
+// register silently failing autoloader
+spl_autoload_register(function($class) {
+ if (0 === strpos($class, 'BeSimple\Tests\\')) {
+ $path = __DIR__.'/../'.strtr($class, '\\', '/').'.php';
+ if (file_exists($path) && is_readable($path)) {
+ require_once $path;
+
+ return true;
+ }
+ } elseif (0 === strpos($class, 'BeSimple\SoapServer\\')) {
+ $path = __DIR__.'/../src/'.($class = strtr($class, '\\', '/')).'.php';
+ if (file_exists($path) && is_readable($path)) {
+ require_once $path;
+
+ return true;
+ }
+ } elseif (0 === strpos($class, 'BeSimple\SoapCommon\\')) {
+ $path = __DIR__.'/../vendor/besimple-soapcommon/src/'.($class = strtr($class, '\\', '/')).'.php';
+ if (file_exists($path) && is_readable($path)) {
+ require_once $path;
+
+ return true;
+ }
+ }
+});
@@ -0,0 +1,41 @@
+#!/usr/bin/env php
+<?php
+
+/*
+ * This file is part of the BeSimpleSoapClient.
+ *
+ * (c) Christian Kerl <christian-kerl@web.de>
+ * (c) Francis Besset <francis.besset@gmail.com>
+ *
+ * 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)));
+}

0 comments on commit 61946b3

Please sign in to comment.