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 db885b2 commit b676093
Show file tree
Hide file tree
Showing 63 changed files with 37 additions and 94 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
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

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.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
* with this source code in the file LICENSE.
*/

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

use BeSimple\SoapCommon\Cache;
use BeSimple\SoapCommon\Classmap;
use BeSimple\SoapCommon\Converter\DateTimeTypeConverter;
use BeSimple\SoapCommon\Converter\DateTypeConverter;
use BeSimple\SoapCommon\Converter\TypeConverterCollection;
use BeSimple\Tests\SoapCommon\Fixtures\SoapBuilder;
use BeSimple\SoapCommon\Tests\Fixtures\SoapBuilder;

class AbstractSoapBuilderTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -194,7 +194,7 @@ public function testCreateWithDefaults()
{
$builder = SoapBuilder::createWithDefaults();

$this->assertInstanceOf('BeSimple\Tests\SoapCommon\Fixtures\SoapBuilder', $builder);
$this->assertInstanceOf('BeSimple\SoapCommon\Tests\Fixtures\SoapBuilder', $builder);

$this->assertEquals($this->mergeOptions(array('soap_version' => SOAP_1_2, 'encoding' => 'UTF-8', 'features' => SOAP_SINGLE_ELEMENT_ARRAYS)), $builder->getSoapOptions());
}
Expand All @@ -208,4 +208,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\Tests\SoapCommon\Soap;
namespace BeSimple\SoapCommon\Tests;

use BeSimple\SoapCommon\Cache;
use org\bovigo\vfs\vfsStream;
Expand Down Expand Up @@ -91,4 +91,4 @@ public function setUp()
ini_restore('soap.wsdl_cache_ttl');
ini_restore('soap.wsdl_cache_limit');
}
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BeSimple\Tests\SoapCommon\Fixtures;
namespace BeSimple\SoapCommon\Tests\Fixtures;

use BeSimple\SoapCommon\Mime\PartHeader;

class MimePartHeader extends PartHeader
{
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace BeSimple\Tests\SoapCommon\Fixtures;
namespace BeSimple\SoapCommon\Tests\Fixtures;

use BeSimple\SoapCommon\AbstractSoapBuilder;

class SoapBuilder extends AbstractSoapBuilder
{
}
}
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\Tests\SoapCommon\Soap;
namespace BeSimple\SoapCommon\Tests;

use BeSimple\SoapCommon\Mime\MultiPart;
use BeSimple\SoapCommon\Mime\Part;
Expand Down Expand Up @@ -141,4 +141,4 @@ public function testGetParts()
);
$this->assertEquals($withMain, $mp->getParts(true));
}
}
}
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\SoapCommon\Tests;

use BeSimple\SoapCommon\Mime\MultiPart;
use BeSimple\SoapCommon\Mime\Parser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* with this source code in the file LICENSE.
*/

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

use BeSimple\SoapCommon\Mime\PartHeader;
use BeSimple\Tests\SoapCommon\Fixtures\MimePartHeader;
use BeSimple\SoapCommon\Tests\Fixtures\MimePartHeader;

class PartHeaderTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -54,4 +54,4 @@ public function testGenerateHeaders()
$ph->setHeader('Content-Type', 'type', 'text/xml');
$this->assertEquals("Content-Type: text/xml; charset=utf-8; type=\"text/xml\"\r\n", $method->invoke($ph));
}
}
}
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\SoapCommon\Tests;

use BeSimple\SoapCommon\Mime\Part;
use BeSimple\SoapCommon\Mime\PartHeader;
Expand Down Expand Up @@ -59,4 +59,4 @@ public function testGetMessagePart()

$this->assertEquals($messagePart, $p->getMessagePart());
}
}
}
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\SoapCommon\Tests;

use BeSimple\SoapCommon\WsSecurityKey;
use ass\XmlSecurity\Key as XmlSecurityKey;
Expand Down
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\SoapCommon\Tests;

use BeSimple\SoapCommon\WsdlHandler;

Expand Down Expand Up @@ -45,4 +45,4 @@ public function testIsValidMimeTypeType()
$this->assertTrue($wh->isValidMimeTypeType('http://example.com/soapaction', WsdlHandler::BINDING_OPERATION_INPUT, 'ClaimPhoto', 'image/gif'));
$this->assertTrue($wh->isValidMimeTypeType('http://example.com/soapaction', WsdlHandler::BINDING_OPERATION_INPUT, 'ClaimPhoto', 'text/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.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
],
"require": {
"php": ">=5.3.0",
"ext-soap": "*",
"ass/xmlsecurity": "dev-master"
},
"require-dev": {
"mikey179/vfsStream": "dev-master"
},
"autoload": {
"psr-0": {
"BeSimple\\SoapCommon": "src/"
}
}
"psr-0": { "BeSimple\\SoapCommon": "" }
},
"target-dir": "BeSimple/SoapCommon",
"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\SoapCommon Test Suite">
<directory>./tests/BeSimple/</directory>
<testsuite name="BeSimple SoapCommon 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>
5 changes: 0 additions & 5 deletions tests/bootstrap.php

This file was deleted.

42 changes: 0 additions & 42 deletions vendors.php

This file was deleted.

0 comments on commit b676093

Please sign in to comment.