public function testAddThroughConstructor() { $math = \Mdanter\Ecc\EccFactory::getAdapter(); $item = new Uint64($math); $template = new Template([$item]); $items = $template->getItems(); $this->assertEquals(1, count($items)); $this->assertEquals($item, $items[0]); }