/** * @expectedException \RuntimeException * @expectedExceptionMessage Number of items must match template */ public function testWriteIncomplete() { $math = \Mdanter\Ecc\EccFactory::getAdapter(); $uint64le = new Uint64($math, ByteOrder::LE); $varstring = new VarString(new VarInt($math)); $template = new Template([$uint64le, $varstring]); $template->write([50000]); }