Fix unit test bugs

This commit is contained in:
Dennis Eichhorn 2018-03-28 23:11:22 +02:00
parent d5fd2c4827
commit 2ec800fe62
2 changed files with 3 additions and 12 deletions

View File

@ -318,13 +318,13 @@ class Money implements \Serializable
/**
* Searialze.
*
* @return int
* @return string
*
* @since 1.0.0
*/
public function serialize() : string
{
return $this->getInt();
return (string) $this->getInt();
}
/**
@ -338,7 +338,7 @@ class Money implements \Serializable
*/
public function unserialize($value) : void
{
$this->setInt($value);
$this->setInt((int) $value);
}
/**

View File

@ -122,15 +122,6 @@ class RequestTest extends \PHPUnit\Framework\TestCase
);
}
/**
* @expectedException \phpOMS\Stdlib\Base\Exception\InvalidEnumValue
*/
public function testInvalidRequestSource()
{
$request = new Request(new Http('http://www.google.com/test/path'));
$request->setRequestSource(999);
}
/**
* @expectedException \OutOfRangeException
*/