Updated bootsrap tests (use composer for vendors)
This commit is contained in:
parent
332872443e
commit
f5d49a0236
@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the BeSimpleSoapBundle.
|
||||
*
|
||||
* (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.
|
||||
|
@ -5,5 +5,6 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
|
||||
class Attributes
|
||||
{
|
||||
public $foo;
|
||||
|
||||
public $bar;
|
||||
}
|
||||
}
|
||||
|
@ -17,4 +17,4 @@ class ComplexType
|
||||
{
|
||||
$this->foo = $foo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
|
||||
class Setters
|
||||
{
|
||||
private $foo;
|
||||
|
||||
private $bar;
|
||||
|
||||
public function getFoo()
|
||||
@ -26,4 +27,4 @@ class Setters
|
||||
{
|
||||
$this->bar = $bar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the BeSimpleSoapBundle.
|
||||
*
|
||||
* (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.
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
3
Tests/fixtures/ServiceBinding/Bar.php
vendored
3
Tests/fixtures/ServiceBinding/Bar.php
vendored
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
|
||||
class Bar
|
||||
{
|
||||
private $foo;
|
||||
|
||||
private $bar;
|
||||
|
||||
public function __construct($foo, $bar)
|
||||
@ -12,4 +13,4 @@ class Bar
|
||||
$this->foo = $foo;
|
||||
$this->bar = $bar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,4 @@ class BarRecursive
|
||||
{
|
||||
$this->foo = $foo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
Tests/fixtures/ServiceBinding/Foo.php
vendored
2
Tests/fixtures/ServiceBinding/Foo.php
vendored
@ -12,4 +12,4 @@ class Foo
|
||||
$this->foo = $foo;
|
||||
$this->bar = $bar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
Tests/fixtures/ServiceBinding/FooBar.php
vendored
2
Tests/fixtures/ServiceBinding/FooBar.php
vendored
@ -12,4 +12,4 @@ class FooBar
|
||||
$this->foo = $foo;
|
||||
$this->bar = $bar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,4 +5,4 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
|
||||
class FooRecursive
|
||||
{
|
||||
public $bar;
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@ class SimpleArrays
|
||||
public $array1;
|
||||
|
||||
private $array2;
|
||||
|
||||
private $array3;
|
||||
|
||||
public function __construct($array1, $array2, $array3)
|
||||
|
@ -22,8 +22,11 @@
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"besimple/soap-common": "dev-master",
|
||||
"ass/xmlsecurity": "dev-master",
|
||||
"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": {
|
||||
"besimple/soap-client": "dev-master",
|
||||
|
@ -9,16 +9,13 @@
|
||||
processIsolation="false"
|
||||
stopOnFailure="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>
|
||||
<testsuite name="SoapBundle Test Suite">
|
||||
<directory>./Tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
</phpunit>
|
||||
|
Loading…
Reference in New Issue
Block a user