public function testChangeDefaultAdapterWithInstance() { $newAdapter = new Adapter\PhpSerialize(); Serializer::setDefaultAdapter($newAdapter); $this->assertTrue($newAdapter === Serializer::getDefaultAdapter()); }