Update dev requirements and test suite for PHP 7+ only

This commit is contained in:
Ben Ramsey
2017-11-08 16:25:08 -06:00
parent 049d5acf7a
commit 5d7ee63f1c
28 changed files with 206 additions and 191 deletions
+5 -3
View File
@@ -26,7 +26,7 @@ class OrderedTimeCodecTest extends TestCase
/** @var string */
private $optimizedHex = '11d8eebc58e0a7d796690800200c9a66';
protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->builder = $this->getMockBuilder(UuidBuilderInterface::class)->getMock();
@@ -39,7 +39,7 @@ class OrderedTimeCodecTest extends TestCase
'node' => '0800200c9a66'];
}
protected function tearDown()
protected function tearDown(): void
{
parent::tearDown();
$this->builder = null;
@@ -89,7 +89,9 @@ class OrderedTimeCodecTest extends TestCase
$string = '61';
$bytes = pack('H*', $string);
$codec = new OrderedTimeCodec($this->builder);
$this->setExpectedException('InvalidArgumentException', '$bytes string should contain 16 characters.');
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('$bytes string should contain 16 characters.');
$codec->decodeBytes($bytes);
}