@@ 107-114 (lines=8) @@ | ||
104 | $this->assertEquals($string, $frontMatter->dump($document)); |
|
105 | } |
|
106 | ||
107 | public function getYaml() |
|
108 | { |
|
109 | return [ |
|
110 | ['foo', [], 'foo', false], |
|
111 | ["---\nfoo: bar\n---\n", ['foo' => 'bar'], '', true], |
|
112 | ["---\nfoo: bar\n---\ntext", ['foo' => 'bar'], 'text', true], |
|
113 | ]; |
|
114 | } |
|
115 | ||
116 | public function getSeparator() |
|
117 | { |
|
@@ 116-123 (lines=8) @@ | ||
113 | ]; |
|
114 | } |
|
115 | ||
116 | public function getSeparator() |
|
117 | { |
|
118 | return [ |
|
119 | ['foo', [], 'foo', false], |
|
120 | ["<!--\nfoo: bar\n-->\n", ['foo' => 'bar'], '', true], |
|
121 | ["<!--\nfoo: bar\n-->\ntext", ['foo' => 'bar'], 'text', true], |
|
122 | ]; |
|
123 | } |
|
124 | ||
125 | public function getJson() |
|
126 | { |
|
@@ 125-132 (lines=8) @@ | ||
122 | ]; |
|
123 | } |
|
124 | ||
125 | public function getJson() |
|
126 | { |
|
127 | return [ |
|
128 | ['foo', [], 'foo', false], |
|
129 | ["---\n{\"foo\":\"bar\"}\n---\n", ['foo' => 'bar'], '', true], |
|
130 | ["---\n{\"foo\":\"bar\"}\n---\ntext", ['foo' => 'bar'], 'text', true], |
|
131 | ]; |
|
132 | } |
|
133 | ||
134 | public function getPlainJson() |
|
135 | { |
|
@@ 134-141 (lines=8) @@ | ||
131 | ]; |
|
132 | } |
|
133 | ||
134 | public function getPlainJson() |
|
135 | { |
|
136 | return [ |
|
137 | ['foo', [], 'foo', false], |
|
138 | ["{\n\"foo\":\"bar\"\n}\n", ['foo' => 'bar'], '', true], |
|
139 | ["{\n\"foo\":\"bar\"\n}\ntext", ['foo' => 'bar'], 'text', true], |
|
140 | ]; |
|
141 | } |
|
142 | ||
143 | public function getToml() |
|
144 | { |
|
@@ 143-150 (lines=8) @@ | ||
140 | ]; |
|
141 | } |
|
142 | ||
143 | public function getToml() |
|
144 | { |
|
145 | return [ |
|
146 | ['foo', [], 'foo', false], |
|
147 | ["---\nfoo = 'bar'\n---\n", ['foo' => 'bar'], '', true], |
|
148 | ["---\nfoo = 'bar'\n---\ntext", ['foo' => 'bar'], 'text', true], |
|
149 | ]; |
|
150 | } |
|
151 | ||
152 | private function assertDocument($data, $content, Document $document) |
|
153 | { |