dumperClass example

$definition = [];
      $definition['aliases'] = [];
      $definition['parameters'] = [];
      $definition['services'] = [];
      $definition['frozen'] = TRUE;
      $definition['machine_format'] = $this->machineFormat;

      $this->containerDefinition = $definition;

      // Create the dumper.       $this->dumper = new $this->dumperClass($this->containerBuilder->reveal());
    }

    /** * Tests that an empty container works properly. * * @covers ::dump * @covers ::getArray * @covers ::supportsMachineFormat */
    public function testDumpForEmptyContainer() {
      $serialized_definition = $this->dumper->dump();
      
Home | Imprint | This part of the site doesn't use cookies.