addPlaceholderStrategy example

/** * @covers ::addPlaceholderStrategy * @covers ::processPlaceholders * * @dataProvider providerProcessPlaceholders */
  public function testProcessPlaceholders($strategies$placeholders$result) {
    $chained_placeholder_strategy = new ChainedPlaceholderStrategy();

    foreach ($strategies as $strategy) {
      $chained_placeholder_strategy->addPlaceholderStrategy($strategy);
    }

    $this->assertEquals($result$chained_placeholder_strategy->processPlaceholders($placeholders));
  }

  /** * Provides a list of render strategies, placeholders and results. * * @return array */
  public static function providerProcessPlaceholders() {
    
Home | Imprint | This part of the site doesn't use cookies.