Updated bootsrap tests (use composer for vendors)
This commit is contained in:
parent
332872443e
commit
f5d49a0236
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the BeSimpleSoapBundle.
|
* This file is part of the BeSimpleSoapBundle.
|
||||||
*
|
*
|
||||||
* (c) Christian Kerl <christian-kerl@web.de>
|
* (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
|
* This source file is subject to the MIT license that is bundled
|
||||||
* with this source code in the file LICENSE.
|
* with this source code in the file LICENSE.
|
||||||
|
|
|
@ -5,5 +5,6 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
|
||||||
class Attributes
|
class Attributes
|
||||||
{
|
{
|
||||||
public $foo;
|
public $foo;
|
||||||
|
|
||||||
public $bar;
|
public $bar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,4 +17,4 @@ class ComplexType
|
||||||
{
|
{
|
||||||
$this->foo = $foo;
|
$this->foo = $foo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
|
||||||
class Setters
|
class Setters
|
||||||
{
|
{
|
||||||
private $foo;
|
private $foo;
|
||||||
|
|
||||||
private $bar;
|
private $bar;
|
||||||
|
|
||||||
public function getFoo()
|
public function getFoo()
|
||||||
|
@ -26,4 +27,4 @@ class Setters
|
||||||
{
|
{
|
||||||
$this->bar = $bar;
|
$this->bar = $bar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the BeSimpleSoapBundle.
|
* This file is part of the BeSimpleSoapBundle.
|
||||||
*
|
*
|
||||||
* (c) Christian Kerl <christian-kerl@web.de>
|
* (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
|
* This source file is subject to the MIT license that is bundled
|
||||||
* with this source code in the file LICENSE.
|
* with this source code in the file LICENSE.
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
require_once $_SERVER['SYMFONY'].'/Symfony/Component/ClassLoader/UniversalClassLoader.php';
|
|
||||||
|
|
||||||
use Symfony\Component\ClassLoader\UniversalClassLoader;
|
|
||||||
|
|
||||||
$loader = new UniversalClassLoader();
|
|
||||||
$loader->registerNamespace('Symfony', $_SERVER['SYMFONY']);
|
|
||||||
$loader->registerNamespace('Zend', $_SERVER['ZEND']);
|
|
||||||
$loader->register();
|
|
||||||
|
|
||||||
spl_autoload_register(function($class) {
|
|
||||||
//if (0 === strpos($class, 'BeSimple\\SoapBundle\\')) {
|
|
||||||
if (0 === strpos($class, 'BeSimple\\SoapBundle\\')) {
|
|
||||||
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
|
|
||||||
|
|
||||||
if (file_exists($path)) {
|
|
||||||
require_once $path;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
|
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
|
||||||
class Bar
|
class Bar
|
||||||
{
|
{
|
||||||
private $foo;
|
private $foo;
|
||||||
|
|
||||||
private $bar;
|
private $bar;
|
||||||
|
|
||||||
public function __construct($foo, $bar)
|
public function __construct($foo, $bar)
|
||||||
|
@ -12,4 +13,4 @@ class Bar
|
||||||
$this->foo = $foo;
|
$this->foo = $foo;
|
||||||
$this->bar = $bar;
|
$this->bar = $bar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ class BarRecursive
|
||||||
{
|
{
|
||||||
$this->foo = $foo;
|
$this->foo = $foo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,4 +12,4 @@ class Foo
|
||||||
$this->foo = $foo;
|
$this->foo = $foo;
|
||||||
$this->bar = $bar;
|
$this->bar = $bar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,4 +12,4 @@ class FooBar
|
||||||
$this->foo = $foo;
|
$this->foo = $foo;
|
||||||
$this->bar = $bar;
|
$this->bar = $bar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,4 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
|
||||||
class FooRecursive
|
class FooRecursive
|
||||||
{
|
{
|
||||||
public $bar;
|
public $bar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ class SimpleArrays
|
||||||
public $array1;
|
public $array1;
|
||||||
|
|
||||||
private $array2;
|
private $array2;
|
||||||
|
|
||||||
private $array3;
|
private $array3;
|
||||||
|
|
||||||
public function __construct($array1, $array2, $array3)
|
public function __construct($array1, $array2, $array3)
|
||||||
|
|
|
@ -22,8 +22,11 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0",
|
"php": ">=5.3.0",
|
||||||
"besimple/soap-common": "dev-master",
|
"besimple/soap-common": "dev-master",
|
||||||
|
"ass/xmlsecurity": "dev-master",
|
||||||
"zendframework/zend-soap": "2.1.1",
|
"zendframework/zend-soap": "2.1.1",
|
||||||
"zendframework/zend-mime": "2.1.1"
|
"zendframework/zend-mime": "2.1.1",
|
||||||
|
"zendframework/zend-mail": "2.1.1",
|
||||||
|
"symfony/http-foundation": ">=2.0,<2.3-dev"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"besimple/soap-client": "dev-master",
|
"besimple/soap-client": "dev-master",
|
||||||
|
|
|
@ -9,16 +9,13 @@
|
||||||
processIsolation="false"
|
processIsolation="false"
|
||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
syntaxCheck="false"
|
syntaxCheck="false"
|
||||||
bootstrap="Tests/bootstrap.php"
|
bootstrap="vendor/autoload.php"
|
||||||
>
|
>
|
||||||
<php>
|
|
||||||
<server name="SYMFONY" value="./vendor/symfony/src" />
|
|
||||||
<server name="ZEND" value="./vendor/zend-framework/library" />
|
|
||||||
</php>
|
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="SoapBundle Test Suite">
|
<testsuite name="SoapBundle Test Suite">
|
||||||
<directory>./Tests</directory>
|
<directory>./Tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
Loading…
Reference in New Issue