Fixed typo and added unit tests

This commit is contained in:
Francis Besset
2011-10-11 21:24:32 +02:00
parent 0f30119294
commit f95a5177b1
5 changed files with 80 additions and 9 deletions

View File

@ -42,11 +42,11 @@ class ClassmapTest extends \PHPUnit_Framework_TestCase
{
$classmap = new Classmap();
$this->setExpectedException('InvalidArgumentException');
$classmap->get('foobar');
$classmap->add('foobar', 'BeSimple\SoapCommon\Classmap');
$this->assertSame(array('foobar' => 'BeSimple\SoapCommon\Classmap'), $classmap->get('foobar'));
$this->assertSame('BeSimple\SoapCommon\Classmap', $classmap->get('foobar'));
$this->setExpectedException('InvalidArgumentException');
$classmap->get('bar');
}
public function testSet()