Fixed typo and added unit tests
This commit is contained in:
@ -25,6 +25,12 @@ class SoapRequestTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(Cache::DISABLED, Cache::isEnabled());
|
||||
}
|
||||
|
||||
public function testSetEnabledBadValue()
|
||||
{
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
Cache::setEnabled('foo');
|
||||
}
|
||||
|
||||
public function testSetType()
|
||||
{
|
||||
Cache::setType(Cache::TYPE_DISK);
|
||||
@ -34,6 +40,12 @@ class SoapRequestTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(Cache::TYPE_NONE, Cache::getType());
|
||||
}
|
||||
|
||||
public function testSetTypeBadValue()
|
||||
{
|
||||
$this->setExpectedException('InvalidArgumentException');
|
||||
Cache::setType('foo');
|
||||
}
|
||||
|
||||
public function testSetDirectory()
|
||||
{
|
||||
\vfsStream::setup('Fixtures');
|
||||
|
Reference in New Issue
Block a user