Updated bootsrap tests (use composer for vendors)

This commit is contained in:
Francis Besset 2013-02-20 16:16:47 +01:00
parent 332872443e
commit f5d49a0236
14 changed files with 22 additions and 39 deletions

View File

@ -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.

View File

@ -5,5 +5,6 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
class Attributes
{
public $foo;
public $bar;
}

View File

@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\ServiceBinding\fixtures;
class Setters
{
private $foo;
private $bar;
public function getFoo()

View File

@ -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.

View File

@ -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;
}
});

View File

@ -5,6 +5,7 @@ namespace BeSimple\SoapBundle\Tests\fixtures\ServiceBinding;
class Bar
{
private $foo;
private $bar;
public function __construct($foo, $bar)

View File

@ -7,6 +7,7 @@ class SimpleArrays
public $array1;
private $array2;
private $array3;
public function __construct($array1, $array2, $array3)

View File

@ -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",

View File

@ -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>