Fixed namespace

This commit is contained in:
Francis Besset 2011-08-27 18:09:48 +02:00
parent db4c599af6
commit 3141adcfad
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
* with this source code in the file LICENSE. * with this source code in the file LICENSE.
*/ */
namespace BeSimple\SoapBundle\Tests\ServiceBinding; namespace BeSimple\SoapBundle\Tests\Converter;
use BeSimple\SoapBundle\Soap\SoapRequest; use BeSimple\SoapBundle\Soap\SoapRequest;
use BeSimple\SoapBundle\Soap\SoapResponse; use BeSimple\SoapBundle\Soap\SoapResponse;
@ -24,8 +24,8 @@ class DateTimeTypeConverterTest extends \PHPUnit_Framework_TestCase
public function testConvertXmlToPhp() public function testConvertXmlToPhp()
{ {
$converter = new DateTimeTypeConverter(); $converter = new DateTimeTypeConverter();
$dateXml = '<sometag>2002-10-10T12:00:00-05:00</sometag>';
$dateXml = '<sometag>2002-10-10T12:00:00-05:00</sometag>';
$date = $converter->convertXmlToPhp(new SoapRequest(), $dateXml); $date = $converter->convertXmlToPhp(new SoapRequest(), $dateXml);
$this->assertEquals(new \DateTime('2002-10-10T12:00:00-05:00'), $date); $this->assertEquals(new \DateTime('2002-10-10T12:00:00-05:00'), $date);
@ -34,8 +34,8 @@ class DateTimeTypeConverterTest extends \PHPUnit_Framework_TestCase
public function testConvertPhpToXml() public function testConvertPhpToXml()
{ {
$converter = new DateTimeTypeConverter(); $converter = new DateTimeTypeConverter();
$date = new \DateTime('2002-10-10T12:00:00-05:00');
$date = new \DateTime('2002-10-10T12:00:00-05:00');
$dateXml = $converter->convertPhpToXml(new SoapResponse(), $date); $dateXml = $converter->convertPhpToXml(new SoapResponse(), $date);
$this->assertEquals('<dateTime>2002-10-10T12:00:00-05:00</dateTime>', $dateXml); $this->assertEquals('<dateTime>2002-10-10T12:00:00-05:00</dateTime>', $dateXml);