From 1430b27f86d0d2f6af504e24a907fe8af21551e5 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 26 Mar 2012 19:02:05 -0700 Subject: [PATCH] Move `examples` into the test fixtures. --- bin/create_example.php | 7 +++---- test/Mustache/Test/Functional/ExamplesTest.php | 10 ++++------ .../fixtures/examples}/child_context/ChildContext.php | 0 .../examples}/child_context/child_context.mustache | 0 .../fixtures/examples}/child_context/child_context.txt | 0 .../fixtures/examples}/comments/Comments.php | 0 .../fixtures/examples}/comments/comments.mustache | 0 .../fixtures/examples}/comments/comments.txt | 0 .../fixtures/examples}/complex/complex.mustache | 0 .../fixtures/examples}/complex/complex.php | 0 .../fixtures/examples}/complex/complex.txt | 0 .../fixtures/examples}/delimiters/Delimiters.php | 0 .../fixtures/examples}/delimiters/delimiters.mustache | 0 .../fixtures/examples}/delimiters/delimiters.txt | 0 .../fixtures/examples}/dot_notation/DotNotation.php | 0 .../examples}/dot_notation/dot_notation.mustache | 0 .../fixtures/examples}/dot_notation/dot_notation.txt | 0 .../examples}/double_section/DoubleSection.php | 0 .../examples}/double_section/double_section.mustache | 0 .../examples}/double_section/double_section.txt | 0 .../fixtures/examples}/escaped/Escaped.php | 0 .../fixtures/examples}/escaped/escaped.mustache | 0 .../fixtures/examples}/escaped/escaped.txt | 0 .../grand_parent_context/GrandParentContext.php | 0 .../grand_parent_context/grand_parent_context.mustache | 0 .../grand_parent_context/grand_parent_context.txt | 0 {examples => test/fixtures/examples}/i18n/I18n.php | 0 .../fixtures/examples}/i18n/i18n.mustache | 0 {examples => test/fixtures/examples}/i18n/i18n.txt | 0 .../examples}/implicit_iterator/ImplicitIterator.php | 0 .../implicit_iterator/implicit_iterator.mustache | 0 .../examples}/implicit_iterator/implicit_iterator.txt | 0 .../inverted_double_section/InvertedDoubleSection.php | 0 .../inverted_double_section.mustache | 0 .../inverted_double_section.txt | 0 .../examples}/inverted_section/InvertedSection.php | 0 .../inverted_section/inverted_section.mustache | 0 .../examples}/inverted_section/inverted_section.txt | 0 .../fixtures/examples}/partials/Partials.php | 0 .../fixtures/examples}/partials/partials.mustache | 0 .../fixtures/examples}/partials/partials.txt | 0 .../examples}/partials/partials/header.mustache | 0 .../examples}/recursive_partials/RecursivePartials.php | 0 .../recursive_partials/partials/child.mustache | 0 .../recursive_partials/recursive_partials.mustache | 0 .../recursive_partials/recursive_partials.txt | 0 .../SectionIteratorObjects.php | 0 .../section_iterator_objects.mustache | 0 .../section_iterator_objects.txt | 0 .../section_magic_objects/SectionMagicObjects.php | 0 .../section_magic_objects.mustache | 0 .../section_magic_objects/section_magic_objects.txt | 0 .../examples}/section_objects/SectionObjects.php | 0 .../examples}/section_objects/section_objects.mustache | 0 .../examples}/section_objects/section_objects.txt | 0 .../fixtures/examples}/sections/Sections.php | 0 .../fixtures/examples}/sections/sections.mustache | 0 .../fixtures/examples}/sections/sections.txt | 0 .../examples}/sections_nested/SectionsNested.php | 0 .../examples}/sections_nested/sections_nested.mustache | 0 .../examples}/sections_nested/sections_nested.txt | 0 {examples => test/fixtures/examples}/simple/Simple.php | 0 .../fixtures/examples}/simple/simple.mustache | 0 {examples => test/fixtures/examples}/simple/simple.txt | 0 .../fixtures/examples}/unescaped/Unescaped.php | 0 .../fixtures/examples}/unescaped/unescaped.mustache | 0 .../fixtures/examples}/unescaped/unescaped.txt | 0 {examples => test/fixtures/examples}/utf8/UTF8.php | 0 .../fixtures/examples}/utf8/utf8.mustache | 0 {examples => test/fixtures/examples}/utf8/utf8.txt | 0 .../examples}/utf8_unescaped/UTF8Unescaped.php | 0 .../examples}/utf8_unescaped/utf8_unescaped.mustache | 0 .../examples}/utf8_unescaped/utf8_unescaped.txt | 0 .../fixtures/examples}/whitespace/Whitespace.php | 0 .../examples}/whitespace/partials/alphabet.mustache | 0 .../fixtures/examples}/whitespace/whitespace.mustache | 0 .../fixtures/examples}/whitespace/whitespace.txt | 0 77 files changed, 7 insertions(+), 10 deletions(-) rename {examples => test/fixtures/examples}/child_context/ChildContext.php (100%) rename {examples => test/fixtures/examples}/child_context/child_context.mustache (100%) rename {examples => test/fixtures/examples}/child_context/child_context.txt (100%) rename {examples => test/fixtures/examples}/comments/Comments.php (100%) rename {examples => test/fixtures/examples}/comments/comments.mustache (100%) rename {examples => test/fixtures/examples}/comments/comments.txt (100%) rename {examples => test/fixtures/examples}/complex/complex.mustache (100%) rename {examples => test/fixtures/examples}/complex/complex.php (100%) rename {examples => test/fixtures/examples}/complex/complex.txt (100%) rename {examples => test/fixtures/examples}/delimiters/Delimiters.php (100%) rename {examples => test/fixtures/examples}/delimiters/delimiters.mustache (100%) rename {examples => test/fixtures/examples}/delimiters/delimiters.txt (100%) rename {examples => test/fixtures/examples}/dot_notation/DotNotation.php (100%) rename {examples => test/fixtures/examples}/dot_notation/dot_notation.mustache (100%) rename {examples => test/fixtures/examples}/dot_notation/dot_notation.txt (100%) rename {examples => test/fixtures/examples}/double_section/DoubleSection.php (100%) rename {examples => test/fixtures/examples}/double_section/double_section.mustache (100%) rename {examples => test/fixtures/examples}/double_section/double_section.txt (100%) rename {examples => test/fixtures/examples}/escaped/Escaped.php (100%) rename {examples => test/fixtures/examples}/escaped/escaped.mustache (100%) rename {examples => test/fixtures/examples}/escaped/escaped.txt (100%) rename {examples => test/fixtures/examples}/grand_parent_context/GrandParentContext.php (100%) rename {examples => test/fixtures/examples}/grand_parent_context/grand_parent_context.mustache (100%) rename {examples => test/fixtures/examples}/grand_parent_context/grand_parent_context.txt (100%) rename {examples => test/fixtures/examples}/i18n/I18n.php (100%) rename {examples => test/fixtures/examples}/i18n/i18n.mustache (100%) rename {examples => test/fixtures/examples}/i18n/i18n.txt (100%) rename {examples => test/fixtures/examples}/implicit_iterator/ImplicitIterator.php (100%) rename {examples => test/fixtures/examples}/implicit_iterator/implicit_iterator.mustache (100%) rename {examples => test/fixtures/examples}/implicit_iterator/implicit_iterator.txt (100%) rename {examples => test/fixtures/examples}/inverted_double_section/InvertedDoubleSection.php (100%) rename {examples => test/fixtures/examples}/inverted_double_section/inverted_double_section.mustache (100%) rename {examples => test/fixtures/examples}/inverted_double_section/inverted_double_section.txt (100%) rename {examples => test/fixtures/examples}/inverted_section/InvertedSection.php (100%) rename {examples => test/fixtures/examples}/inverted_section/inverted_section.mustache (100%) rename {examples => test/fixtures/examples}/inverted_section/inverted_section.txt (100%) rename {examples => test/fixtures/examples}/partials/Partials.php (100%) rename {examples => test/fixtures/examples}/partials/partials.mustache (100%) rename {examples => test/fixtures/examples}/partials/partials.txt (100%) rename {examples => test/fixtures/examples}/partials/partials/header.mustache (100%) rename {examples => test/fixtures/examples}/recursive_partials/RecursivePartials.php (100%) rename {examples => test/fixtures/examples}/recursive_partials/partials/child.mustache (100%) rename {examples => test/fixtures/examples}/recursive_partials/recursive_partials.mustache (100%) rename {examples => test/fixtures/examples}/recursive_partials/recursive_partials.txt (100%) rename {examples => test/fixtures/examples}/section_iterator_objects/SectionIteratorObjects.php (100%) rename {examples => test/fixtures/examples}/section_iterator_objects/section_iterator_objects.mustache (100%) rename {examples => test/fixtures/examples}/section_iterator_objects/section_iterator_objects.txt (100%) rename {examples => test/fixtures/examples}/section_magic_objects/SectionMagicObjects.php (100%) rename {examples => test/fixtures/examples}/section_magic_objects/section_magic_objects.mustache (100%) rename {examples => test/fixtures/examples}/section_magic_objects/section_magic_objects.txt (100%) rename {examples => test/fixtures/examples}/section_objects/SectionObjects.php (100%) rename {examples => test/fixtures/examples}/section_objects/section_objects.mustache (100%) rename {examples => test/fixtures/examples}/section_objects/section_objects.txt (100%) rename {examples => test/fixtures/examples}/sections/Sections.php (100%) rename {examples => test/fixtures/examples}/sections/sections.mustache (100%) rename {examples => test/fixtures/examples}/sections/sections.txt (100%) rename {examples => test/fixtures/examples}/sections_nested/SectionsNested.php (100%) rename {examples => test/fixtures/examples}/sections_nested/sections_nested.mustache (100%) rename {examples => test/fixtures/examples}/sections_nested/sections_nested.txt (100%) rename {examples => test/fixtures/examples}/simple/Simple.php (100%) rename {examples => test/fixtures/examples}/simple/simple.mustache (100%) rename {examples => test/fixtures/examples}/simple/simple.txt (100%) rename {examples => test/fixtures/examples}/unescaped/Unescaped.php (100%) rename {examples => test/fixtures/examples}/unescaped/unescaped.mustache (100%) rename {examples => test/fixtures/examples}/unescaped/unescaped.txt (100%) rename {examples => test/fixtures/examples}/utf8/UTF8.php (100%) rename {examples => test/fixtures/examples}/utf8/utf8.mustache (100%) rename {examples => test/fixtures/examples}/utf8/utf8.txt (100%) rename {examples => test/fixtures/examples}/utf8_unescaped/UTF8Unescaped.php (100%) rename {examples => test/fixtures/examples}/utf8_unescaped/utf8_unescaped.mustache (100%) rename {examples => test/fixtures/examples}/utf8_unescaped/utf8_unescaped.txt (100%) rename {examples => test/fixtures/examples}/whitespace/Whitespace.php (100%) rename {examples => test/fixtures/examples}/whitespace/partials/alphabet.mustache (100%) rename {examples => test/fixtures/examples}/whitespace/whitespace.mustache (100%) rename {examples => test/fixtures/examples}/whitespace/whitespace.txt (100%) diff --git a/bin/create_example.php b/bin/create_example.php index 0838b38..306eae0 100755 --- a/bin/create_example.php +++ b/bin/create_example.php @@ -22,8 +22,7 @@ This creates a new example and the corresponding files in the examples/ director USAGE ); -define('DS', DIRECTORY_SEPARATOR); -define('EXAMPLE_PATH', realpath(dirname(__FILE__) . DS . ".." . DS . "examples")); +define('EXAMPLE_PATH', realpath(dirname(__FILE__) . '/../test/fixtures/examples')); /** @@ -90,8 +89,8 @@ function out($value) { * @return string */ function buildPath($directory, $filename = null, $extension = null) { - return out(EXAMPLE_PATH . DS . $directory. - ($extension !== null && $filename !== null ? DS . $filename. "." . $extension : "")); + return out(EXAMPLE_PATH . '/' . $directory. + ($extension !== null && $filename !== null ? '/' . $filename. "." . $extension : "")); } /** diff --git a/test/Mustache/Test/Functional/ExamplesTest.php b/test/Mustache/Test/Functional/ExamplesTest.php index 52fdbe1..32f0fa0 100644 --- a/test/Mustache/Test/Functional/ExamplesTest.php +++ b/test/Mustache/Test/Functional/ExamplesTest.php @@ -35,18 +35,16 @@ class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase { /** * Data provider for testExamples method. * - * Assumes that an `examples` directory exists inside parent directory. + * Loads examples from the test fixtures directory. + * * This examples directory should contain any number of subdirectories, each of which contains * three files: one Mustache class (.php), one Mustache template (.mustache), and one output file - * (.txt). - * - * This whole mess will be refined later to be more intuitive and less prescriptive, but it'll - * do for now. Especially since it means we can have unit tests :) + * (.txt). Optionally, the directory may contain a folder full of partials. * * @return array */ public function getExamples() { - $path = realpath(dirname(__FILE__).'/../../../../examples'); + $path = realpath(dirname(__FILE__).'/../../../fixtures/examples'); $examples = array(); $handle = opendir($path); diff --git a/examples/child_context/ChildContext.php b/test/fixtures/examples/child_context/ChildContext.php similarity index 100% rename from examples/child_context/ChildContext.php rename to test/fixtures/examples/child_context/ChildContext.php diff --git a/examples/child_context/child_context.mustache b/test/fixtures/examples/child_context/child_context.mustache similarity index 100% rename from examples/child_context/child_context.mustache rename to test/fixtures/examples/child_context/child_context.mustache diff --git a/examples/child_context/child_context.txt b/test/fixtures/examples/child_context/child_context.txt similarity index 100% rename from examples/child_context/child_context.txt rename to test/fixtures/examples/child_context/child_context.txt diff --git a/examples/comments/Comments.php b/test/fixtures/examples/comments/Comments.php similarity index 100% rename from examples/comments/Comments.php rename to test/fixtures/examples/comments/Comments.php diff --git a/examples/comments/comments.mustache b/test/fixtures/examples/comments/comments.mustache similarity index 100% rename from examples/comments/comments.mustache rename to test/fixtures/examples/comments/comments.mustache diff --git a/examples/comments/comments.txt b/test/fixtures/examples/comments/comments.txt similarity index 100% rename from examples/comments/comments.txt rename to test/fixtures/examples/comments/comments.txt diff --git a/examples/complex/complex.mustache b/test/fixtures/examples/complex/complex.mustache similarity index 100% rename from examples/complex/complex.mustache rename to test/fixtures/examples/complex/complex.mustache diff --git a/examples/complex/complex.php b/test/fixtures/examples/complex/complex.php similarity index 100% rename from examples/complex/complex.php rename to test/fixtures/examples/complex/complex.php diff --git a/examples/complex/complex.txt b/test/fixtures/examples/complex/complex.txt similarity index 100% rename from examples/complex/complex.txt rename to test/fixtures/examples/complex/complex.txt diff --git a/examples/delimiters/Delimiters.php b/test/fixtures/examples/delimiters/Delimiters.php similarity index 100% rename from examples/delimiters/Delimiters.php rename to test/fixtures/examples/delimiters/Delimiters.php diff --git a/examples/delimiters/delimiters.mustache b/test/fixtures/examples/delimiters/delimiters.mustache similarity index 100% rename from examples/delimiters/delimiters.mustache rename to test/fixtures/examples/delimiters/delimiters.mustache diff --git a/examples/delimiters/delimiters.txt b/test/fixtures/examples/delimiters/delimiters.txt similarity index 100% rename from examples/delimiters/delimiters.txt rename to test/fixtures/examples/delimiters/delimiters.txt diff --git a/examples/dot_notation/DotNotation.php b/test/fixtures/examples/dot_notation/DotNotation.php similarity index 100% rename from examples/dot_notation/DotNotation.php rename to test/fixtures/examples/dot_notation/DotNotation.php diff --git a/examples/dot_notation/dot_notation.mustache b/test/fixtures/examples/dot_notation/dot_notation.mustache similarity index 100% rename from examples/dot_notation/dot_notation.mustache rename to test/fixtures/examples/dot_notation/dot_notation.mustache diff --git a/examples/dot_notation/dot_notation.txt b/test/fixtures/examples/dot_notation/dot_notation.txt similarity index 100% rename from examples/dot_notation/dot_notation.txt rename to test/fixtures/examples/dot_notation/dot_notation.txt diff --git a/examples/double_section/DoubleSection.php b/test/fixtures/examples/double_section/DoubleSection.php similarity index 100% rename from examples/double_section/DoubleSection.php rename to test/fixtures/examples/double_section/DoubleSection.php diff --git a/examples/double_section/double_section.mustache b/test/fixtures/examples/double_section/double_section.mustache similarity index 100% rename from examples/double_section/double_section.mustache rename to test/fixtures/examples/double_section/double_section.mustache diff --git a/examples/double_section/double_section.txt b/test/fixtures/examples/double_section/double_section.txt similarity index 100% rename from examples/double_section/double_section.txt rename to test/fixtures/examples/double_section/double_section.txt diff --git a/examples/escaped/Escaped.php b/test/fixtures/examples/escaped/Escaped.php similarity index 100% rename from examples/escaped/Escaped.php rename to test/fixtures/examples/escaped/Escaped.php diff --git a/examples/escaped/escaped.mustache b/test/fixtures/examples/escaped/escaped.mustache similarity index 100% rename from examples/escaped/escaped.mustache rename to test/fixtures/examples/escaped/escaped.mustache diff --git a/examples/escaped/escaped.txt b/test/fixtures/examples/escaped/escaped.txt similarity index 100% rename from examples/escaped/escaped.txt rename to test/fixtures/examples/escaped/escaped.txt diff --git a/examples/grand_parent_context/GrandParentContext.php b/test/fixtures/examples/grand_parent_context/GrandParentContext.php similarity index 100% rename from examples/grand_parent_context/GrandParentContext.php rename to test/fixtures/examples/grand_parent_context/GrandParentContext.php diff --git a/examples/grand_parent_context/grand_parent_context.mustache b/test/fixtures/examples/grand_parent_context/grand_parent_context.mustache similarity index 100% rename from examples/grand_parent_context/grand_parent_context.mustache rename to test/fixtures/examples/grand_parent_context/grand_parent_context.mustache diff --git a/examples/grand_parent_context/grand_parent_context.txt b/test/fixtures/examples/grand_parent_context/grand_parent_context.txt similarity index 100% rename from examples/grand_parent_context/grand_parent_context.txt rename to test/fixtures/examples/grand_parent_context/grand_parent_context.txt diff --git a/examples/i18n/I18n.php b/test/fixtures/examples/i18n/I18n.php similarity index 100% rename from examples/i18n/I18n.php rename to test/fixtures/examples/i18n/I18n.php diff --git a/examples/i18n/i18n.mustache b/test/fixtures/examples/i18n/i18n.mustache similarity index 100% rename from examples/i18n/i18n.mustache rename to test/fixtures/examples/i18n/i18n.mustache diff --git a/examples/i18n/i18n.txt b/test/fixtures/examples/i18n/i18n.txt similarity index 100% rename from examples/i18n/i18n.txt rename to test/fixtures/examples/i18n/i18n.txt diff --git a/examples/implicit_iterator/ImplicitIterator.php b/test/fixtures/examples/implicit_iterator/ImplicitIterator.php similarity index 100% rename from examples/implicit_iterator/ImplicitIterator.php rename to test/fixtures/examples/implicit_iterator/ImplicitIterator.php diff --git a/examples/implicit_iterator/implicit_iterator.mustache b/test/fixtures/examples/implicit_iterator/implicit_iterator.mustache similarity index 100% rename from examples/implicit_iterator/implicit_iterator.mustache rename to test/fixtures/examples/implicit_iterator/implicit_iterator.mustache diff --git a/examples/implicit_iterator/implicit_iterator.txt b/test/fixtures/examples/implicit_iterator/implicit_iterator.txt similarity index 100% rename from examples/implicit_iterator/implicit_iterator.txt rename to test/fixtures/examples/implicit_iterator/implicit_iterator.txt diff --git a/examples/inverted_double_section/InvertedDoubleSection.php b/test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php similarity index 100% rename from examples/inverted_double_section/InvertedDoubleSection.php rename to test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php diff --git a/examples/inverted_double_section/inverted_double_section.mustache b/test/fixtures/examples/inverted_double_section/inverted_double_section.mustache similarity index 100% rename from examples/inverted_double_section/inverted_double_section.mustache rename to test/fixtures/examples/inverted_double_section/inverted_double_section.mustache diff --git a/examples/inverted_double_section/inverted_double_section.txt b/test/fixtures/examples/inverted_double_section/inverted_double_section.txt similarity index 100% rename from examples/inverted_double_section/inverted_double_section.txt rename to test/fixtures/examples/inverted_double_section/inverted_double_section.txt diff --git a/examples/inverted_section/InvertedSection.php b/test/fixtures/examples/inverted_section/InvertedSection.php similarity index 100% rename from examples/inverted_section/InvertedSection.php rename to test/fixtures/examples/inverted_section/InvertedSection.php diff --git a/examples/inverted_section/inverted_section.mustache b/test/fixtures/examples/inverted_section/inverted_section.mustache similarity index 100% rename from examples/inverted_section/inverted_section.mustache rename to test/fixtures/examples/inverted_section/inverted_section.mustache diff --git a/examples/inverted_section/inverted_section.txt b/test/fixtures/examples/inverted_section/inverted_section.txt similarity index 100% rename from examples/inverted_section/inverted_section.txt rename to test/fixtures/examples/inverted_section/inverted_section.txt diff --git a/examples/partials/Partials.php b/test/fixtures/examples/partials/Partials.php similarity index 100% rename from examples/partials/Partials.php rename to test/fixtures/examples/partials/Partials.php diff --git a/examples/partials/partials.mustache b/test/fixtures/examples/partials/partials.mustache similarity index 100% rename from examples/partials/partials.mustache rename to test/fixtures/examples/partials/partials.mustache diff --git a/examples/partials/partials.txt b/test/fixtures/examples/partials/partials.txt similarity index 100% rename from examples/partials/partials.txt rename to test/fixtures/examples/partials/partials.txt diff --git a/examples/partials/partials/header.mustache b/test/fixtures/examples/partials/partials/header.mustache similarity index 100% rename from examples/partials/partials/header.mustache rename to test/fixtures/examples/partials/partials/header.mustache diff --git a/examples/recursive_partials/RecursivePartials.php b/test/fixtures/examples/recursive_partials/RecursivePartials.php similarity index 100% rename from examples/recursive_partials/RecursivePartials.php rename to test/fixtures/examples/recursive_partials/RecursivePartials.php diff --git a/examples/recursive_partials/partials/child.mustache b/test/fixtures/examples/recursive_partials/partials/child.mustache similarity index 100% rename from examples/recursive_partials/partials/child.mustache rename to test/fixtures/examples/recursive_partials/partials/child.mustache diff --git a/examples/recursive_partials/recursive_partials.mustache b/test/fixtures/examples/recursive_partials/recursive_partials.mustache similarity index 100% rename from examples/recursive_partials/recursive_partials.mustache rename to test/fixtures/examples/recursive_partials/recursive_partials.mustache diff --git a/examples/recursive_partials/recursive_partials.txt b/test/fixtures/examples/recursive_partials/recursive_partials.txt similarity index 100% rename from examples/recursive_partials/recursive_partials.txt rename to test/fixtures/examples/recursive_partials/recursive_partials.txt diff --git a/examples/section_iterator_objects/SectionIteratorObjects.php b/test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php similarity index 100% rename from examples/section_iterator_objects/SectionIteratorObjects.php rename to test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php diff --git a/examples/section_iterator_objects/section_iterator_objects.mustache b/test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache similarity index 100% rename from examples/section_iterator_objects/section_iterator_objects.mustache rename to test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache diff --git a/examples/section_iterator_objects/section_iterator_objects.txt b/test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt similarity index 100% rename from examples/section_iterator_objects/section_iterator_objects.txt rename to test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt diff --git a/examples/section_magic_objects/SectionMagicObjects.php b/test/fixtures/examples/section_magic_objects/SectionMagicObjects.php similarity index 100% rename from examples/section_magic_objects/SectionMagicObjects.php rename to test/fixtures/examples/section_magic_objects/SectionMagicObjects.php diff --git a/examples/section_magic_objects/section_magic_objects.mustache b/test/fixtures/examples/section_magic_objects/section_magic_objects.mustache similarity index 100% rename from examples/section_magic_objects/section_magic_objects.mustache rename to test/fixtures/examples/section_magic_objects/section_magic_objects.mustache diff --git a/examples/section_magic_objects/section_magic_objects.txt b/test/fixtures/examples/section_magic_objects/section_magic_objects.txt similarity index 100% rename from examples/section_magic_objects/section_magic_objects.txt rename to test/fixtures/examples/section_magic_objects/section_magic_objects.txt diff --git a/examples/section_objects/SectionObjects.php b/test/fixtures/examples/section_objects/SectionObjects.php similarity index 100% rename from examples/section_objects/SectionObjects.php rename to test/fixtures/examples/section_objects/SectionObjects.php diff --git a/examples/section_objects/section_objects.mustache b/test/fixtures/examples/section_objects/section_objects.mustache similarity index 100% rename from examples/section_objects/section_objects.mustache rename to test/fixtures/examples/section_objects/section_objects.mustache diff --git a/examples/section_objects/section_objects.txt b/test/fixtures/examples/section_objects/section_objects.txt similarity index 100% rename from examples/section_objects/section_objects.txt rename to test/fixtures/examples/section_objects/section_objects.txt diff --git a/examples/sections/Sections.php b/test/fixtures/examples/sections/Sections.php similarity index 100% rename from examples/sections/Sections.php rename to test/fixtures/examples/sections/Sections.php diff --git a/examples/sections/sections.mustache b/test/fixtures/examples/sections/sections.mustache similarity index 100% rename from examples/sections/sections.mustache rename to test/fixtures/examples/sections/sections.mustache diff --git a/examples/sections/sections.txt b/test/fixtures/examples/sections/sections.txt similarity index 100% rename from examples/sections/sections.txt rename to test/fixtures/examples/sections/sections.txt diff --git a/examples/sections_nested/SectionsNested.php b/test/fixtures/examples/sections_nested/SectionsNested.php similarity index 100% rename from examples/sections_nested/SectionsNested.php rename to test/fixtures/examples/sections_nested/SectionsNested.php diff --git a/examples/sections_nested/sections_nested.mustache b/test/fixtures/examples/sections_nested/sections_nested.mustache similarity index 100% rename from examples/sections_nested/sections_nested.mustache rename to test/fixtures/examples/sections_nested/sections_nested.mustache diff --git a/examples/sections_nested/sections_nested.txt b/test/fixtures/examples/sections_nested/sections_nested.txt similarity index 100% rename from examples/sections_nested/sections_nested.txt rename to test/fixtures/examples/sections_nested/sections_nested.txt diff --git a/examples/simple/Simple.php b/test/fixtures/examples/simple/Simple.php similarity index 100% rename from examples/simple/Simple.php rename to test/fixtures/examples/simple/Simple.php diff --git a/examples/simple/simple.mustache b/test/fixtures/examples/simple/simple.mustache similarity index 100% rename from examples/simple/simple.mustache rename to test/fixtures/examples/simple/simple.mustache diff --git a/examples/simple/simple.txt b/test/fixtures/examples/simple/simple.txt similarity index 100% rename from examples/simple/simple.txt rename to test/fixtures/examples/simple/simple.txt diff --git a/examples/unescaped/Unescaped.php b/test/fixtures/examples/unescaped/Unescaped.php similarity index 100% rename from examples/unescaped/Unescaped.php rename to test/fixtures/examples/unescaped/Unescaped.php diff --git a/examples/unescaped/unescaped.mustache b/test/fixtures/examples/unescaped/unescaped.mustache similarity index 100% rename from examples/unescaped/unescaped.mustache rename to test/fixtures/examples/unescaped/unescaped.mustache diff --git a/examples/unescaped/unescaped.txt b/test/fixtures/examples/unescaped/unescaped.txt similarity index 100% rename from examples/unescaped/unescaped.txt rename to test/fixtures/examples/unescaped/unescaped.txt diff --git a/examples/utf8/UTF8.php b/test/fixtures/examples/utf8/UTF8.php similarity index 100% rename from examples/utf8/UTF8.php rename to test/fixtures/examples/utf8/UTF8.php diff --git a/examples/utf8/utf8.mustache b/test/fixtures/examples/utf8/utf8.mustache similarity index 100% rename from examples/utf8/utf8.mustache rename to test/fixtures/examples/utf8/utf8.mustache diff --git a/examples/utf8/utf8.txt b/test/fixtures/examples/utf8/utf8.txt similarity index 100% rename from examples/utf8/utf8.txt rename to test/fixtures/examples/utf8/utf8.txt diff --git a/examples/utf8_unescaped/UTF8Unescaped.php b/test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php similarity index 100% rename from examples/utf8_unescaped/UTF8Unescaped.php rename to test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php diff --git a/examples/utf8_unescaped/utf8_unescaped.mustache b/test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache similarity index 100% rename from examples/utf8_unescaped/utf8_unescaped.mustache rename to test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache diff --git a/examples/utf8_unescaped/utf8_unescaped.txt b/test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt similarity index 100% rename from examples/utf8_unescaped/utf8_unescaped.txt rename to test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt diff --git a/examples/whitespace/Whitespace.php b/test/fixtures/examples/whitespace/Whitespace.php similarity index 100% rename from examples/whitespace/Whitespace.php rename to test/fixtures/examples/whitespace/Whitespace.php diff --git a/examples/whitespace/partials/alphabet.mustache b/test/fixtures/examples/whitespace/partials/alphabet.mustache similarity index 100% rename from examples/whitespace/partials/alphabet.mustache rename to test/fixtures/examples/whitespace/partials/alphabet.mustache diff --git a/examples/whitespace/whitespace.mustache b/test/fixtures/examples/whitespace/whitespace.mustache similarity index 100% rename from examples/whitespace/whitespace.mustache rename to test/fixtures/examples/whitespace/whitespace.mustache diff --git a/examples/whitespace/whitespace.txt b/test/fixtures/examples/whitespace/whitespace.txt similarity index 100% rename from examples/whitespace/whitespace.txt rename to test/fixtures/examples/whitespace/whitespace.txt