{CONTENT} HTML; $this->assertEquals( << Some content here
with bla bla inside HTML, StringReplace::replaceData( $html_block, [ 'ID' => 'block-id', 'CSS' => join(',', ['blue', 'red']), '{CONTENT}' => 'Some content here
with bla bla inside', ] ) ); } /** * Undocumented function * * @testdox replaceData error * * @return void */ /* public function testReplaceDataErrors(): void { $this->expectException(HtmlBuilderExcpetion::class); $this->expectExceptionMessage("Replace and content array count differ"); StringReplace::replaceData('{FOO}', ['{FOO}', '{BAR}'], ['foo']); } */ } // __END__