Skip to content

Commit

Permalink
Fix asset helper test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jan 22, 2023
1 parent 0fa499d commit 74d872e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/Pug/PugSymfonyEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,17 +377,20 @@ public function testAssetHelperPhp()
self::assertSame(
'<div style="'.
'background-position: 50% -402px; '.
'background-image: url(\'/assets/img/patterns/5.png\');'.
'background-image: url(\'assets/img/patterns/5.png\');'.
'" class="foo"></div>'."\n".
'<div style="'.
'background-position:50% -402px;'.
'background-image:url(\'/assets/img/patterns/5.png\')'.
'background-image:url(\'assets/img/patterns/5.png\')'.
'" class="foo"></div>',
preg_replace(
'/<div( class="[^"]+")(.+?)></',
'<div$2$1><',
str_replace(['\'assets/', "\r"], ['\'/assets/', ''], trim($pugSymfony->render('style-php.pug')))
)
strtr(trim($pugSymfony->render('style-php.pug')), [
"\r" => '',
'&#039;' => "'",
]),
),
);
}

Expand Down

0 comments on commit 74d872e

Please sign in to comment.