Skip to content

Commit

Permalink
Reorganized directories structure
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Jul 19, 2013
1 parent 4130177 commit c0c83b3
Show file tree
Hide file tree
Showing 51 changed files with 27 additions and 104 deletions.
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
vendor
/phpunit.xml
.buildpath
.project
.settings
vendor/
composer.lock
phpunit.xml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* with this source code in the file LICENSE.
*/

namespace BeSimple\SoapClient;
namespace BeSimple\SoapClient\Tests;

use BeSimple\SoapClient\Curl;

Expand All @@ -23,7 +23,9 @@ class CurlTest extends \PHPUnit_Framework_TestCase

protected function startPhpWebserver()
{
$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
$this->markTestSkipped('Start a local webserver is not the best practice');

$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
if ('Windows' == substr(php_uname('s'), 0, 7)) {
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".$dir."' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
$shellCommand = 'powershell -command "& {'.$powershellCommand.'}"';
Expand Down Expand Up @@ -178,4 +180,4 @@ public function testGetResponseStatusMessage()

$this->stopPhpWebserver();
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* with this source code in the file LICENSE.
*/

namespace BeSimple\Tests\SoapCommon\Soap;
namespace BeSimple\SoapClient\Tests;

use BeSimple\SoapClient\SoapClientBuilder;

Expand Down Expand Up @@ -116,4 +116,4 @@ private function mergeOptions(array $options)
{
return array_merge($this->defaultOptions, $options);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* with this source code in the file LICENSE.
*/

namespace BeSimple\SoapClient;
namespace BeSimple\SoapClient\Tests;

use BeSimple\SoapClient\WsdlDownloader;
use BeSimple\SoapClient\Curl;
Expand All @@ -24,6 +24,8 @@ class WsdlDownloaderTest extends \PHPUnit_Framework_TestCase

protected function startPhpWebserver()
{
$this->markTestSkipped('Start a local webserver is not the best practice');

$dir = __DIR__.DIRECTORY_SEPARATOR.'Fixtures';
if ('Windows' == substr(php_uname('s'), 0, 7)) {
$powershellCommand = "\$app = start-process php.exe -ArgumentList '-S localhost:8000 -t ".$dir."' -WindowStyle 'Hidden' -passthru; Echo \$app.Id;";
Expand Down Expand Up @@ -263,4 +265,4 @@ public function testResolveRelativePathInUrl()
$this->assertEquals('http://localhost/test', $method->invoke($wd, 'http://localhost/sub/sub/sub', '../../../test'));
$this->assertEquals('http://localhost/test', $method->invoke($wd, 'http://localhost/sub/sub/sub/', '../../../test'));
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
],
"require": {
"php": ">=5.3.0",
"ext-soap": "*",
"ext-curl": "*",
"besimple/soap-common": "dev-master",
"ass/xmlsecurity": "dev-master"
},
"autoload": {
"psr-0": {
"BeSimple\\SoapClient": "BeSimple/SoapClient/src/"
}
"psr-0": { "BeSimple\\SoapClient": "" }
},
"target-dir": "BeSimple/SoapClient"
"target-dir": "BeSimple/SoapClient",
"minimum-stability": "dev"
}
18 changes: 8 additions & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/bootstrap.php"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="BeSimple\SoapClient Test Suite">
<directory>./tests/BeSimple/</directory>
<testsuite name="BeSimple SoapClient 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>
36 changes: 0 additions & 36 deletions tests/bootstrap.php

This file was deleted.

42 changes: 0 additions & 42 deletions vendors.php

This file was deleted.

0 comments on commit c0c83b3

Please sign in to comment.