function testUnregisterDefaultCodec() { $result = Protobuf::unregisterCodec('default'); $this->assertTrue($result); // Ensure a new default is given $getted = Protobuf::getCodec(); $this->assertInstanceOf('DrSlump\\Protobuf\\Codec\\Binary', $getted); }