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;
|
||||
}
|
|
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
|
|||
class Setters
|
||||
{
|
||||
private $foo;
|
||||
|
||||
private $bar;
|
||||
|
||||
public function getFoo()
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
|
@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
|
|||
class Bar
|
||||
{
|
||||
private $foo;
|
||||
|
||||
private $bar;
|
||||
|
||||
public function __construct($foo, $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