public function testStaticMethodCodes() { $buffer = Buffer::hex('0001020300010203000102030001020300010203000102030001020300010203'); $block = Inventory::block($buffer); $tx = Inventory::tx($buffer); $filtered = Inventory::filteredBlock($buffer); $this->assertEquals(Inventory::MSG_BLOCK, $block->getType()); $this->assertEquals(Inventory::MSG_TX, $tx->getType()); $this->assertEquals(Inventory::MSG_FILTERED_BLOCK, $filtered->getType()); }