/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. */ public function tearDown() { parent::tearDown(); $this->factory->unregisterFactory(); $this->builder->unregisterAll(); $this->builder = null; $this->factory = null; }