implemented basic SoapKernel to transform a SoapRequest to a SoapResponse

This commit is contained in:
Christian Kerl
2010-10-05 21:44:30 +02:00
parent 54a76a4ef8
commit b0681e5fcf
10 changed files with 414 additions and 31 deletions

40
Tests/SoapKernelTest.php Normal file
View File

@ -0,0 +1,40 @@
<?php
/*
* This file is part of the WebServiceBundle.
*
* (c) Christian Kerl <christian-kerl@web.de>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Bundle\WebServiceBundle\Tests;
use Symfony\Component\HttpFoundation\Request;
use Bundle\WebServiceBundle\SoapKernel;
/**
* UnitTest for \Bundle\WebServiceBundle\SoapKernel.
*
* @author Christian Kerl <christian-kerl@web.de>
*/
class SoapKernelTest extends \PHPUnit_Framework_TestCase
{
private $soapKernel;
public function setUp()
{
$soapServer = new \SoapServer();
$this->soapKernel = new SoapKernel($soapServer, null);
}
/**
* @expectedException InvalidArgumentException
*/
public function testInvalidRequest()
{
$this->soapKernel->handle(new Request());
}
}