assertSame($expectedNode, $staticNode->getNode()->toString()); } /** * @return array */ public function provideNodeForTest(): array { return [ [ 'node' => new Hexadecimal('0'), 'expectedNode' => '010000000000', ], [ 'node' => new Hexadecimal('1'), 'expectedNode' => '010000000001', ], [ 'node' => new Hexadecimal('f2ffffffffff'), 'expectedNode' => 'f3ffffffffff', ], [ 'node' => new Hexadecimal('ffffffffffff'), 'expectedNode' => 'ffffffffffff', ], ]; } public function testStaticNodeThrowsExceptionForTooLongNode(): void { $this->expectException(InvalidArgumentException::class); $this->expectExceptionMessage( 'Static node value cannot be greater than 12 hexadecimal characters' ); new StaticNodeProvider(new Hexadecimal('1000000000000')); } }