Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Oct 11, 2017
1 parent 49c2d34 commit c121c0a
Showing 1 changed file with 39 additions and 20 deletions.
59 changes: 39 additions & 20 deletions tests/Phug/DefaultOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private static function isCallable($expected)

private static function assertOptionValue($expected, $actual, $name)
{
$message = "$name option should be ".var_export($expected, true)." by default.";
$message = "$name option should be ".var_export($expected, true).' by default.';
if (self::isCallable($actual) && self::isCallable($expected)) {
self::assertTrue(true, $message);

Expand Down Expand Up @@ -144,7 +144,8 @@ public function testRendererOptions()
'on_render' => null,
'on_html' => null,
'filters' => [
'cdata' => function () {},
'cdata' => function () {
},
],
], Phug::getRenderer(['debug' => false]));

Expand Down Expand Up @@ -173,7 +174,8 @@ public function testRendererOptions()
'on_render' => null,
'on_html' => null,
'filters' => [
'cdata' => function () {},
'cdata' => function () {
},
],
], Phug::getRenderer());

Expand Down Expand Up @@ -266,7 +268,8 @@ public function testFormatterOptions()
], Phug::getRenderer()->getCompiler()->getFormatter());

self::assertOptions([
'pattern' => function () {},
'pattern' => function () {
},
'patterns' => [
'class_attribute' => XhtmlFormat::CLASS_ATTRIBUTE,
'string_attribute' => XhtmlFormat::STRING_ATTRIBUTE,
Expand All @@ -284,27 +287,43 @@ public function testFormatterOptions()
'display_comment' => XhtmlFormat::DISPLAY_COMMENT,
'doctype' => XhtmlFormat::DOCTYPE,
'custom_doctype' => XhtmlFormat::CUSTOM_DOCTYPE,
'debug_comment' => function () {}, // XhtmlFormat::DEBUG_COMMENT overridden
'debug' => function () {},
'debug_comment' => function () {
}, // XhtmlFormat::DEBUG_COMMENT overridden
'debug' => function () {
},
],
'pretty' => false,
'element_handlers' => [
AssignmentElement::class => function () {},
AttributeElement::class => function () {},
CodeElement::class => function () {},
CommentElement::class => function () {},
ExpressionElement::class => function () {},
DoctypeElement::class => function () {},
DocumentElement::class => function () {},
KeywordElement::class => function () {},
MarkupElement::class => function () {},
MixinCallElement::class => function () {},
MixinElement::class => function () {},
TextElement::class => function () {},
VariableElement::class => function () {},
AssignmentElement::class => function () {
},
AttributeElement::class => function () {
},
CodeElement::class => function () {
},
CommentElement::class => function () {
},
ExpressionElement::class => function () {
},
DoctypeElement::class => function () {
},
DocumentElement::class => function () {
},
KeywordElement::class => function () {
},
MarkupElement::class => function () {
},
MixinCallElement::class => function () {
},
MixinElement::class => function () {
},
TextElement::class => function () {
},
VariableElement::class => function () {
},
],
'php_token_handlers' => [
T_VARIABLE => function () {},
T_VARIABLE => function () {
},
],
'mixin_merge_mode' => 'replace',
], Phug::getRenderer()->getCompiler()->getFormatter()->getFormatInstance());
Expand Down

0 comments on commit c121c0a

Please sign in to comment.