Reorganized directories structure
This commit is contained in:
8
src/BeSimple/SoapServer/.gitignore
vendored
8
src/BeSimple/SoapServer/.gitignore
vendored
@ -1,5 +1,3 @@
|
||||
vendor
|
||||
/phpunit.xml
|
||||
.buildpath
|
||||
.project
|
||||
.settings
|
||||
vendor/
|
||||
composer.lock
|
||||
phpunit.xml
|
||||
|
@ -10,7 +10,7 @@
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
namespace BeSimple\Tests\SoapServer;
|
||||
namespace BeSimple\SoapServer\Tests;
|
||||
|
||||
use BeSimple\SoapServer\SoapServerBuilder;
|
||||
|
||||
@ -42,4 +42,4 @@ class SoapServerBuilderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
return new SoapServerBuilder();
|
||||
}
|
||||
}
|
||||
}
|
@ -21,12 +21,12 @@
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"ext-soap": "*",
|
||||
"besimple/soap-common": "dev-master"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"BeSimple\\SoapServer": "BeSimple/SoapServer/src/"
|
||||
}
|
||||
"psr-0": { "BeSimple\\SoapServer": "" }
|
||||
},
|
||||
"target-dir": "BeSimple/SoapServer"
|
||||
"target-dir": "BeSimple/SoapServer",
|
||||
"minimum-stability": "dev"
|
||||
}
|
||||
|
@ -9,23 +9,21 @@
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
bootstrap="vendor/autoload.php"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="BeSimple\SoapServer Test Suite">
|
||||
<directory>./tests/BeSimple/</directory>
|
||||
<testsuite name="BeSimple SoapServer Test Suite">
|
||||
<directory>./Tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<groups>
|
||||
<exclude>
|
||||
<group>benchmark</group>
|
||||
</exclude>
|
||||
</groups>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory>./src/BeSimple/</directory>
|
||||
<directory>./</directory>
|
||||
<exclude>
|
||||
<directory>./Tests/</directory>
|
||||
<directory>./vendor/</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
@ -1,29 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
});
|
@ -1,41 +0,0 @@
|
||||
#!/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)));
|
||||
}
|
Reference in New Issue
Block a user