summaryrefslogtreecommitdiff
path: root/vendor/mustache/mustache/test
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mustache/mustache/test')
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php36
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Cache/AbstractCacheTest.php44
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Cache/FilesystemCacheTest.php36
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php154
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/ContextTest.php282
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/EngineTest.php361
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php39
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php44
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php43
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php43
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php32
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/EngineTest.php50
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/FiltersTest.php187
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php77
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php67
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php68
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php94
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php135
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php40
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/ExamplesTest.php142
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/HigherOrderSectionsTest.php177
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/InheritanceTest.php526
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheInjectionTest.php83
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheSpecTest.php121
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/NestedPartialIndentTest.php45
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Functional/ObjectSectionTest.php110
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/FunctionalTestCase.php47
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/HelperCollectionTest.php163
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Loader/ArrayLoaderTest.php52
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Loader/CascadingLoaderTest.php40
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Loader/FilesystemLoaderTest.php80
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Loader/InlineLoaderTest.php56
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Loader/StringLoaderTest.php25
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Logger/AbstractLoggerTest.php60
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/Logger/StreamLoggerTest.php209
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/ParserTest.php425
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/SpecTestCase.php67
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/TemplateTest.php55
-rw-r--r--vendor/mustache/mustache/test/Mustache/Test/TokenizerTest.php306
-rw-r--r--vendor/mustache/mustache/test/bootstrap.php91
-rw-r--r--vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Bar.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Foo.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/autoloader/NonMustacheClass.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/blocks/Blocks.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.mustache4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.txt3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/blocks/partials/parent.mustache4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/child_context/ChildContext.php23
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.mustache2
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.txt2
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/comments/Comments.php18
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/comments/comments.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/comments/comments.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/complex/complex.mustache16
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/complex/complex.php31
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/complex/complex.txt6
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/delimiters/Delimiters.php25
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.mustache8
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/dot_notation/DotNotation.php24
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.mustache4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/double_section/DoubleSection.php20
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.mustache7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.txt3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/escaped/Escaped.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/filters/Filters.php97
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/filters/filters.mustache4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/filters/filters.txt50
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/GrandParentContext.php33
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.mustache7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.txt7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/i18n/I18n.php30
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/ImplicitIterator.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.mustache3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.txt5
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php16
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.mustache7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.txt3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_section/InvertedSection.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.mustache6
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/NestedPartials.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.mustache3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.txt7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/fourth.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/second.mustache3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/third.mustache3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/partials/Partials.php19
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/partials/partials.mustache7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/partials/partials.txt8
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/partials/partials/header.mustache4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/recursive_partials/RecursivePartials.php22
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/recursive_partials/partials/child.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php27
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache5
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/SectionMagicObjects.php40
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.mustache6
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_objects/SectionObjects.php28
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.mustache6
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections/Sections.php25
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections/sections.mustache5
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections/sections.txt4
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections_nested/SectionsNested.php44
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.mustache7
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.txt12
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/simple/Simple.php23
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/simple/simple.mustache5
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/simple/simple.txt3
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/unescaped/Unescaped.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8/UTF8.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php15
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/whitespace/Whitespace.php43
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/whitespace/partials/alphabet.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.mustache10
-rw-r--r--vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.txt12
-rw-r--r--vendor/mustache/mustache/test/fixtures/templates/alpha.ms1
-rw-r--r--vendor/mustache/mustache/test/fixtures/templates/beta.ms1
-rw-r--r--vendor/mustache/mustache/test/fixtures/templates/one.mustache1
-rw-r--r--vendor/mustache/mustache/test/fixtures/templates/two.mustache1
135 files changed, 0 insertions, 5768 deletions
diff --git a/vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php
deleted file mode 100644
index 40af5ee..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/AutoloaderTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_AutoloaderTest extends PHPUnit_Framework_TestCase
-{
- public function testRegister()
- {
- $loader = Mustache_Autoloader::register();
- $this->assertTrue(spl_autoload_unregister(array($loader, 'autoload')));
- }
-
- public function testAutoloader()
- {
- $loader = new Mustache_Autoloader(dirname(__FILE__) . '/../../fixtures/autoloader');
-
- $this->assertNull($loader->autoload('NonMustacheClass'));
- $this->assertFalse(class_exists('NonMustacheClass'));
-
- $loader->autoload('Mustache_Foo');
- $this->assertTrue(class_exists('Mustache_Foo'));
-
- $loader->autoload('\Mustache_Bar');
- $this->assertTrue(class_exists('Mustache_Bar'));
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Cache/AbstractCacheTest.php b/vendor/mustache/mustache/test/Mustache/Test/Cache/AbstractCacheTest.php
deleted file mode 100644
index d977388..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Cache/AbstractCacheTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_Cache_AbstractCacheTest extends PHPUnit_Framework_TestCase
-{
- public function testGetSetLogger()
- {
- $cache = new CacheStub();
- $logger = new Mustache_Logger_StreamLogger('php://stdout');
- $cache->setLogger($logger);
- $this->assertSame($logger, $cache->getLogger());
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testSetLoggerThrowsExceptions()
- {
- $cache = new CacheStub();
- $logger = new StdClass();
- $cache->setLogger($logger);
- }
-}
-
-class CacheStub extends Mustache_Cache_AbstractCache
-{
- public function load($key)
- {
- // nada
- }
-
- public function cache($key, $value)
- {
- // nada
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Cache/FilesystemCacheTest.php b/vendor/mustache/mustache/test/Mustache/Test/Cache/FilesystemCacheTest.php
deleted file mode 100644
index 2413125..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Cache/FilesystemCacheTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group functional
- */
-class Mustache_Test_Cache_FilesystemCacheTest extends Mustache_Test_FunctionalTestCase
-{
- public function testCacheGetNone()
- {
- $key = 'some key';
- $cache = new Mustache_Cache_FilesystemCache(self::$tempDir);
- $loaded = $cache->load($key);
-
- $this->assertFalse($loaded);
- }
-
- public function testCachePut()
- {
- $key = 'some key';
- $value = '<?php /* some value */';
- $cache = new Mustache_Cache_FilesystemCache(self::$tempDir);
- $cache->cache($key, $value);
- $loaded = $cache->load($key);
-
- $this->assertTrue($loaded);
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php b/vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php
deleted file mode 100644
index 725a82c..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/CompilerTest.php
+++ /dev/null
@@ -1,154 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_CompilerTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getCompileValues
- */
- public function testCompile($source, array $tree, $name, $customEscaper, $entityFlags, $charset, $expected)
- {
- $compiler = new Mustache_Compiler();
-
- $compiled = $compiler->compile($source, $tree, $name, $customEscaper, $charset, false, $entityFlags);
- foreach ($expected as $contains) {
- $this->assertContains($contains, $compiled);
- }
- }
-
- public function getCompileValues()
- {
- return array(
- array('', array(), 'Banana', false, ENT_COMPAT, 'ISO-8859-1', array(
- "\nclass Banana extends Mustache_Template",
- 'return $buffer;',
- )),
-
- array('', array($this->createTextToken('TEXT')), 'Monkey', false, ENT_COMPAT, 'UTF-8', array(
- "\nclass Monkey extends Mustache_Template",
- '$buffer .= $indent . \'TEXT\';',
- 'return $buffer;',
- )),
-
- array(
- '',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- ),
- ),
- 'Monkey',
- true,
- ENT_COMPAT,
- 'ISO-8859-1',
- array(
- "\nclass Monkey extends Mustache_Template",
- '$value = $this->resolveValue($context->find(\'name\'), $context);',
- '$buffer .= $indent . call_user_func($this->mustache->getEscape(), $value);',
- 'return $buffer;',
- ),
- ),
-
- array(
- '',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- ),
- ),
- 'Monkey',
- false,
- ENT_COMPAT,
- 'ISO-8859-1',
- array(
- "\nclass Monkey extends Mustache_Template",
- '$value = $this->resolveValue($context->find(\'name\'), $context);',
- '$buffer .= $indent . htmlspecialchars($value, ' . ENT_COMPAT . ', \'ISO-8859-1\');',
- 'return $buffer;',
- ),
- ),
-
- array(
- '',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- ),
- ),
- 'Monkey',
- false,
- ENT_QUOTES,
- 'ISO-8859-1',
- array(
- "\nclass Monkey extends Mustache_Template",
- '$value = $this->resolveValue($context->find(\'name\'), $context);',
- '$buffer .= $indent . htmlspecialchars($value, ' . ENT_QUOTES . ', \'ISO-8859-1\');',
- 'return $buffer;',
- ),
- ),
-
- array(
- '',
- array(
- $this->createTextToken("foo\n"),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => '.',
- ),
- $this->createTextToken("'bar'"),
- ),
- 'Monkey',
- false,
- ENT_COMPAT,
- 'UTF-8',
- array(
- "\nclass Monkey extends Mustache_Template",
- "\$buffer .= \$indent . 'foo\n';",
- '$value = $this->resolveValue($context->find(\'name\'), $context);',
- '$buffer .= htmlspecialchars($value, ' . ENT_COMPAT . ', \'UTF-8\');',
- '$value = $this->resolveValue($context->last(), $context);',
- '$buffer .= \'\\\'bar\\\'\';',
- 'return $buffer;',
- ),
- ),
- );
- }
-
- /**
- * @expectedException Mustache_Exception_SyntaxException
- */
- public function testCompilerThrowsSyntaxException()
- {
- $compiler = new Mustache_Compiler();
- $compiler->compile('', array(array(Mustache_Tokenizer::TYPE => 'invalid')), 'SomeClass');
- }
-
- /**
- * @param string $value
- */
- private function createTextToken($value)
- {
- return array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::VALUE => $value,
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/ContextTest.php b/vendor/mustache/mustache/test/Mustache/Test/ContextTest.php
deleted file mode 100644
index 029c2ba..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/ContextTest.php
+++ /dev/null
@@ -1,282 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_ContextTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructor()
- {
- $one = new Mustache_Context();
- $this->assertSame('', $one->find('foo'));
- $this->assertSame('', $one->find('bar'));
-
- $two = new Mustache_Context(array(
- 'foo' => 'FOO',
- 'bar' => '<BAR>',
- ));
- $this->assertEquals('FOO', $two->find('foo'));
- $this->assertEquals('<BAR>', $two->find('bar'));
-
- $obj = new StdClass();
- $obj->name = 'NAME';
- $three = new Mustache_Context($obj);
- $this->assertSame($obj, $three->last());
- $this->assertEquals('NAME', $three->find('name'));
- }
-
- public function testPushPopAndLast()
- {
- $context = new Mustache_Context();
- $this->assertFalse($context->last());
-
- $dummy = new Mustache_Test_TestDummy();
- $context->push($dummy);
- $this->assertSame($dummy, $context->last());
- $this->assertSame($dummy, $context->pop());
- $this->assertFalse($context->last());
-
- $obj = new StdClass();
- $context->push($dummy);
- $this->assertSame($dummy, $context->last());
- $context->push($obj);
- $this->assertSame($obj, $context->last());
- $this->assertSame($obj, $context->pop());
- $this->assertSame($dummy, $context->pop());
- $this->assertFalse($context->last());
- }
-
- public function testFind()
- {
- $context = new Mustache_Context();
-
- $dummy = new Mustache_Test_TestDummy();
-
- $obj = new StdClass();
- $obj->name = 'obj';
-
- $arr = array(
- 'a' => array('b' => array('c' => 'see')),
- 'b' => 'bee',
- );
-
- $string = 'some arbitrary string';
-
- $context->push($dummy);
- $this->assertEquals('dummy', $context->find('name'));
-
- $context->push($obj);
- $this->assertEquals('obj', $context->find('name'));
-
- $context->pop();
- $this->assertEquals('dummy', $context->find('name'));
-
- $dummy->name = 'dummyer';
- $this->assertEquals('dummyer', $context->find('name'));
-
- $context->push($arr);
- $this->assertEquals('bee', $context->find('b'));
- $this->assertEquals('see', $context->findDot('a.b.c'));
-
- $dummy->name = 'dummy';
-
- $context->push($string);
- $this->assertSame($string, $context->last());
- $this->assertEquals('dummy', $context->find('name'));
- $this->assertEquals('see', $context->findDot('a.b.c'));
- $this->assertEquals('<foo>', $context->find('foo'));
- $this->assertEquals('<bar>', $context->findDot('bar'));
- }
-
- public function testArrayAccessFind()
- {
- $access = new Mustache_Test_TestArrayAccess(array(
- 'a' => array('b' => array('c' => 'see')),
- 'b' => 'bee',
- ));
-
- $context = new Mustache_Context($access);
- $this->assertEquals('bee', $context->find('b'));
- $this->assertEquals('see', $context->findDot('a.b.c'));
- $this->assertEquals(null, $context->findDot('a.b.c.d'));
- }
-
- public function testAccessorPriority()
- {
- $context = new Mustache_Context(new Mustache_Test_AllTheThings());
-
- $this->assertEquals('win', $context->find('foo'), 'method beats property');
- $this->assertEquals('win', $context->find('bar'), 'property beats ArrayAccess');
- $this->assertEquals('win', $context->find('baz'), 'ArrayAccess stands alone');
- $this->assertEquals('win', $context->find('qux'), 'ArrayAccess beats private property');
- }
-
- public function testAnchoredDotNotation()
- {
- $context = new Mustache_Context();
-
- $a = array(
- 'name' => 'a',
- 'number' => 1,
- );
-
- $b = array(
- 'number' => 2,
- 'child' => array(
- 'name' => 'baby bee',
- ),
- );
-
- $c = array(
- 'name' => 'cee',
- );
-
- $context->push($a);
- $this->assertEquals('a', $context->find('name'));
- $this->assertEquals('', $context->findDot('.name'));
- $this->assertEquals('a', $context->findAnchoredDot('.name'));
- $this->assertEquals(1, $context->find('number'));
- $this->assertEquals('', $context->findDot('.number'));
- $this->assertEquals(1, $context->findAnchoredDot('.number'));
-
- $context->push($b);
- $this->assertEquals('a', $context->find('name'));
- $this->assertEquals(2, $context->find('number'));
- $this->assertEquals('', $context->findDot('.name'));
- $this->assertEquals('', $context->findDot('.number'));
- $this->assertEquals('', $context->findAnchoredDot('.name'));
- $this->assertEquals(2, $context->findAnchoredDot('.number'));
- $this->assertEquals('baby bee', $context->findDot('child.name'));
- $this->assertEquals('', $context->findDot('.child.name'));
- $this->assertEquals('baby bee', $context->findAnchoredDot('.child.name'));
-
- $context->push($c);
- $this->assertEquals('cee', $context->find('name'));
- $this->assertEquals('', $context->findDot('.name'));
- $this->assertEquals('cee', $context->findAnchoredDot('.name'));
- $this->assertEquals(2, $context->find('number'));
- $this->assertEquals('', $context->findDot('.number'));
- $this->assertEquals('', $context->findAnchoredDot('.number'));
- $this->assertEquals('baby bee', $context->findDot('child.name'));
- $this->assertEquals('', $context->findDot('.child.name'));
- $this->assertEquals('', $context->findAnchoredDot('.child.name'));
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testAnchoredDotNotationThrowsExceptions()
- {
- $context = new Mustache_Context();
- $context->push(array('a' => 1));
- $context->findAnchoredDot('a');
- }
-}
-
-class Mustache_Test_TestDummy
-{
- public $name = 'dummy';
-
- public function __invoke()
- {
- // nothing
- }
-
- public static function foo()
- {
- return '<foo>';
- }
-
- public function bar()
- {
- return '<bar>';
- }
-}
-
-class Mustache_Test_TestArrayAccess implements ArrayAccess
-{
- private $container = array();
-
- public function __construct($array)
- {
- foreach ($array as $key => $value) {
- $this->container[$key] = $value;
- }
- }
-
- public function offsetSet($offset, $value)
- {
- if (is_null($offset)) {
- $this->container[] = $value;
- } else {
- $this->container[$offset] = $value;
- }
- }
-
- public function offsetExists($offset)
- {
- return isset($this->container[$offset]);
- }
-
- public function offsetUnset($offset)
- {
- unset($this->container[$offset]);
- }
-
- public function offsetGet($offset)
- {
- return isset($this->container[$offset]) ? $this->container[$offset] : null;
- }
-}
-
-class Mustache_Test_AllTheThings implements ArrayAccess
-{
- public $foo = 'fail';
- public $bar = 'win';
- private $qux = 'fail';
-
- public function foo()
- {
- return 'win';
- }
-
- public function offsetExists($offset)
- {
- return true;
- }
-
- public function offsetGet($offset)
- {
- switch ($offset) {
- case 'foo':
- case 'bar':
- return 'fail';
-
- case 'baz':
- case 'qux':
- return 'win';
-
- default:
- return 'lolwhut';
- }
- }
-
- public function offsetSet($offset, $value)
- {
- // nada
- }
-
- public function offsetUnset($offset)
- {
- // nada
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/EngineTest.php b/vendor/mustache/mustache/test/Mustache/Test/EngineTest.php
deleted file mode 100644
index e8743d7..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/EngineTest.php
+++ /dev/null
@@ -1,361 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_EngineTest extends Mustache_Test_FunctionalTestCase
-{
- public function testConstructor()
- {
- $logger = new Mustache_Logger_StreamLogger(tmpfile());
- $loader = new Mustache_Loader_StringLoader();
- $partialsLoader = new Mustache_Loader_ArrayLoader();
- $mustache = new Mustache_Engine(array(
- 'template_class_prefix' => '__whot__',
- 'cache' => self::$tempDir,
- 'cache_file_mode' => 777,
- 'logger' => $logger,
- 'loader' => $loader,
- 'partials_loader' => $partialsLoader,
- 'partials' => array(
- 'foo' => '{{ foo }}',
- ),
- 'helpers' => array(
- 'foo' => array($this, 'getFoo'),
- 'bar' => 'BAR',
- ),
- 'escape' => 'strtoupper',
- 'entity_flags' => ENT_QUOTES,
- 'charset' => 'ISO-8859-1',
- 'pragmas' => array(Mustache_Engine::PRAGMA_FILTERS),
- ));
-
- $this->assertSame($logger, $mustache->getLogger());
- $this->assertSame($loader, $mustache->getLoader());
- $this->assertSame($partialsLoader, $mustache->getPartialsLoader());
- $this->assertEquals('{{ foo }}', $partialsLoader->load('foo'));
- $this->assertContains('__whot__', $mustache->getTemplateClassName('{{ foo }}'));
- $this->assertEquals('strtoupper', $mustache->getEscape());
- $this->assertEquals(ENT_QUOTES, $mustache->getEntityFlags());
- $this->assertEquals('ISO-8859-1', $mustache->getCharset());
- $this->assertTrue($mustache->hasHelper('foo'));
- $this->assertTrue($mustache->hasHelper('bar'));
- $this->assertFalse($mustache->hasHelper('baz'));
- $this->assertInstanceOf('Mustache_Cache_FilesystemCache', $mustache->getCache());
- $this->assertEquals(array(Mustache_Engine::PRAGMA_FILTERS), $mustache->getPragmas());
- }
-
- public static function getFoo()
- {
- return 'foo';
- }
-
- public function testRender()
- {
- $source = '{{ foo }}';
- $data = array('bar' => 'baz');
- $output = 'TEH OUTPUT';
-
- $template = $this->getMockBuilder('Mustache_Template')
- ->disableOriginalConstructor()
- ->getMock();
-
- $mustache = new MustacheStub();
- $mustache->template = $template;
-
- $template->expects($this->once())
- ->method('render')
- ->with($data)
- ->will($this->returnValue($output));
-
- $this->assertEquals($output, $mustache->render($source, $data));
- $this->assertEquals($source, $mustache->source);
- }
-
- public function testSettingServices()
- {
- $logger = new Mustache_Logger_StreamLogger(tmpfile());
- $loader = new Mustache_Loader_StringLoader();
- $tokenizer = new Mustache_Tokenizer();
- $parser = new Mustache_Parser();
- $compiler = new Mustache_Compiler();
- $mustache = new Mustache_Engine();
- $cache = new Mustache_Cache_FilesystemCache(self::$tempDir);
-
- $this->assertNotSame($logger, $mustache->getLogger());
- $mustache->setLogger($logger);
- $this->assertSame($logger, $mustache->getLogger());
-
- $this->assertNotSame($loader, $mustache->getLoader());
- $mustache->setLoader($loader);
- $this->assertSame($loader, $mustache->getLoader());
-
- $this->assertNotSame($loader, $mustache->getPartialsLoader());
- $mustache->setPartialsLoader($loader);
- $this->assertSame($loader, $mustache->getPartialsLoader());
-
- $this->assertNotSame($tokenizer, $mustache->getTokenizer());
- $mustache->setTokenizer($tokenizer);
- $this->assertSame($tokenizer, $mustache->getTokenizer());
-
- $this->assertNotSame($parser, $mustache->getParser());
- $mustache->setParser($parser);
- $this->assertSame($parser, $mustache->getParser());
-
- $this->assertNotSame($compiler, $mustache->getCompiler());
- $mustache->setCompiler($compiler);
- $this->assertSame($compiler, $mustache->getCompiler());
-
- $this->assertNotSame($cache, $mustache->getCache());
- $mustache->setCache($cache);
- $this->assertSame($cache, $mustache->getCache());
- }
-
- /**
- * @group functional
- */
- public function testCache()
- {
- $mustache = new Mustache_Engine(array(
- 'template_class_prefix' => '__whot__',
- 'cache' => self::$tempDir,
- ));
-
- $source = '{{ foo }}';
- $template = $mustache->loadTemplate($source);
- $className = $mustache->getTemplateClassName($source);
-
- $this->assertInstanceOf($className, $template);
- }
-
- public function testLambdaCache()
- {
- $mustache = new MustacheStub(array(
- 'cache' => self::$tempDir,
- 'cache_lambda_templates' => true,
- ));
-
- $this->assertNotInstanceOf('Mustache_Cache_NoopCache', $mustache->getProtectedLambdaCache());
- $this->assertSame($mustache->getCache(), $mustache->getProtectedLambdaCache());
- }
-
- public function testWithoutLambdaCache()
- {
- $mustache = new MustacheStub(array(
- 'cache' => self::$tempDir,
- ));
-
- $this->assertInstanceOf('Mustache_Cache_NoopCache', $mustache->getProtectedLambdaCache());
- $this->assertNotSame($mustache->getCache(), $mustache->getProtectedLambdaCache());
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- * @dataProvider getBadEscapers
- */
- public function testNonCallableEscapeThrowsException($escape)
- {
- new Mustache_Engine(array('escape' => $escape));
- }
-
- public function getBadEscapers()
- {
- return array(
- array('nothing'),
- array('foo', 'bar'),
- );
- }
-
- /**
- * @expectedException Mustache_Exception_RuntimeException
- */
- public function testImmutablePartialsLoadersThrowException()
- {
- $mustache = new Mustache_Engine(array(
- 'partials_loader' => new Mustache_Loader_StringLoader(),
- ));
-
- $mustache->setPartials(array('foo' => '{{ foo }}'));
- }
-
- public function testMissingPartialsTreatedAsEmptyString()
- {
- $mustache = new Mustache_Engine(array(
- 'partials_loader' => new Mustache_Loader_ArrayLoader(array(
- 'foo' => 'FOO',
- 'baz' => 'BAZ',
- )),
- ));
-
- $this->assertEquals('FOOBAZ', $mustache->render('{{>foo}}{{>bar}}{{>baz}}', array()));
- }
-
- public function testHelpers()
- {
- $foo = array($this, 'getFoo');
- $bar = 'BAR';
- $mustache = new Mustache_Engine(array('helpers' => array(
- 'foo' => $foo,
- 'bar' => $bar,
- )));
-
- $helpers = $mustache->getHelpers();
- $this->assertTrue($mustache->hasHelper('foo'));
- $this->assertTrue($mustache->hasHelper('bar'));
- $this->assertTrue($helpers->has('foo'));
- $this->assertTrue($helpers->has('bar'));
- $this->assertSame($foo, $mustache->getHelper('foo'));
- $this->assertSame($bar, $mustache->getHelper('bar'));
-
- $mustache->removeHelper('bar');
- $this->assertFalse($mustache->hasHelper('bar'));
- $mustache->addHelper('bar', $bar);
- $this->assertSame($bar, $mustache->getHelper('bar'));
-
- $baz = array($this, 'wrapWithUnderscores');
- $this->assertFalse($mustache->hasHelper('baz'));
- $this->assertFalse($helpers->has('baz'));
-
- $mustache->addHelper('baz', $baz);
- $this->assertTrue($mustache->hasHelper('baz'));
- $this->assertTrue($helpers->has('baz'));
-
- // ... and a functional test
- $tpl = $mustache->loadTemplate('{{foo}} - {{bar}} - {{#baz}}qux{{/baz}}');
- $this->assertEquals('foo - BAR - __qux__', $tpl->render());
- $this->assertEquals('foo - BAR - __qux__', $tpl->render(array('qux' => "won't mess things up")));
- }
-
- public static function wrapWithUnderscores($text)
- {
- return '__' . $text . '__';
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testSetHelpersThrowsExceptions()
- {
- $mustache = new Mustache_Engine();
- $mustache->setHelpers('monkeymonkeymonkey');
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testSetLoggerThrowsExceptions()
- {
- $mustache = new Mustache_Engine();
- $mustache->setLogger(new StdClass());
- }
-
- public function testLoadPartialCascading()
- {
- $loader = new Mustache_Loader_ArrayLoader(array(
- 'foo' => 'FOO',
- ));
-
- $mustache = new Mustache_Engine(array('loader' => $loader));
-
- $tpl = $mustache->loadTemplate('foo');
-
- $this->assertSame($tpl, $mustache->loadPartial('foo'));
-
- $mustache->setPartials(array(
- 'foo' => 'f00',
- ));
-
- // setting partials overrides the default template loading fallback.
- $this->assertNotSame($tpl, $mustache->loadPartial('foo'));
-
- // but it didn't overwrite the original template loader templates.
- $this->assertSame($tpl, $mustache->loadTemplate('foo'));
- }
-
- public function testPartialLoadFailLogging()
- {
- $name = tempnam(sys_get_temp_dir(), 'mustache-test');
- $mustache = new Mustache_Engine(array(
- 'logger' => new Mustache_Logger_StreamLogger($name, Mustache_Logger::WARNING),
- 'partials' => array(
- 'foo' => 'FOO',
- 'bar' => 'BAR',
- ),
- ));
-
- $result = $mustache->render('{{> foo }}{{> bar }}{{> baz }}', array());
- $this->assertEquals('FOOBAR', $result);
-
- $this->assertContains('WARNING: Partial not found: "baz"', file_get_contents($name));
- }
-
- public function testCacheWarningLogging()
- {
- list($name, $mustache) = $this->getLoggedMustache(Mustache_Logger::WARNING);
- $mustache->render('{{ foo }}', array('foo' => 'FOO'));
- $this->assertContains('WARNING: Template cache disabled, evaluating', file_get_contents($name));
- }
-
- public function testLoggingIsNotTooAnnoying()
- {
- list($name, $mustache) = $this->getLoggedMustache();
- $mustache->render('{{ foo }}{{> bar }}', array('foo' => 'FOO'));
- $this->assertEmpty(file_get_contents($name));
- }
-
- public function testVerboseLoggingIsVerbose()
- {
- list($name, $mustache) = $this->getLoggedMustache(Mustache_Logger::DEBUG);
- $mustache->render('{{ foo }}{{> bar }}', array('foo' => 'FOO'));
- $log = file_get_contents($name);
- $this->assertContains('DEBUG: Instantiating template: ', $log);
- $this->assertContains('WARNING: Partial not found: "bar"', $log);
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testUnknownPragmaThrowsException()
- {
- new Mustache_Engine(array(
- 'pragmas' => array('UNKNOWN'),
- ));
- }
-
- private function getLoggedMustache($level = Mustache_Logger::ERROR)
- {
- $name = tempnam(sys_get_temp_dir(), 'mustache-test');
- $mustache = new Mustache_Engine(array(
- 'logger' => new Mustache_Logger_StreamLogger($name, $level),
- ));
-
- return array($name, $mustache);
- }
-}
-
-class MustacheStub extends Mustache_Engine
-{
- public $source;
- public $template;
-
- public function loadTemplate($source)
- {
- $this->source = $source;
-
- return $this->template;
- }
-
- public function getProtectedLambdaCache()
- {
- return $this->getLambdaCache();
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php
deleted file mode 100644
index 3f6b2e4..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Exception/SyntaxExceptionTest.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_Exception_SyntaxExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new Mustache_Exception_SyntaxException('whot', array('is' => 'this'));
- $this->assertTrue($e instanceof LogicException);
- $this->assertTrue($e instanceof Mustache_Exception);
- }
-
- public function testGetToken()
- {
- $token = array(Mustache_Tokenizer::TYPE => 'whatever');
- $e = new Mustache_Exception_SyntaxException('ignore this', $token);
- $this->assertEquals($token, $e->getToken());
- }
-
- public function testPrevious()
- {
- if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- $this->markTestSkipped('Exception chaining requires at least PHP 5.3');
- }
-
- $previous = new Exception();
- $e = new Mustache_Exception_SyntaxException('foo', array(), $previous);
-
- $this->assertSame($previous, $e->getPrevious());
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php
deleted file mode 100644
index 049c842..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_Exception_UnknownFilterExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new Mustache_Exception_UnknownFilterException('bacon');
- $this->assertTrue($e instanceof UnexpectedValueException);
- $this->assertTrue($e instanceof Mustache_Exception);
- }
-
- public function testMessage()
- {
- $e = new Mustache_Exception_UnknownFilterException('sausage');
- $this->assertEquals('Unknown filter: sausage', $e->getMessage());
- }
-
- public function testGetFilterName()
- {
- $e = new Mustache_Exception_UnknownFilterException('eggs');
- $this->assertEquals('eggs', $e->getFilterName());
- }
-
- public function testPrevious()
- {
- if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- $this->markTestSkipped('Exception chaining requires at least PHP 5.3');
- }
-
- $previous = new Exception();
- $e = new Mustache_Exception_UnknownFilterException('foo', $previous);
-
- $this->assertSame($previous, $e->getPrevious());
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php
deleted file mode 100644
index b1682cd..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownHelperExceptionTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_Exception_UnknownHelperExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new Mustache_Exception_UnknownHelperException('alpha');
- $this->assertTrue($e instanceof InvalidArgumentException);
- $this->assertTrue($e instanceof Mustache_Exception);
- }
-
- public function testMessage()
- {
- $e = new Mustache_Exception_UnknownHelperException('beta');
- $this->assertEquals('Unknown helper: beta', $e->getMessage());
- }
-
- public function testGetHelperName()
- {
- $e = new Mustache_Exception_UnknownHelperException('gamma');
- $this->assertEquals('gamma', $e->getHelperName());
- }
-
- public function testPrevious()
- {
- if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- $this->markTestSkipped('Exception chaining requires at least PHP 5.3');
- }
-
- $previous = new Exception();
- $e = new Mustache_Exception_UnknownHelperException('foo', $previous);
- $this->assertSame($previous, $e->getPrevious());
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php
deleted file mode 100644
index 2452749..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownTemplateExceptionTest.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_Exception_UnknownTemplateExceptionTest extends PHPUnit_Framework_TestCase
-{
- public function testInstance()
- {
- $e = new Mustache_Exception_UnknownTemplateException('mario');
- $this->assertTrue($e instanceof InvalidArgumentException);
- $this->assertTrue($e instanceof Mustache_Exception);
- }
-
- public function testMessage()
- {
- $e = new Mustache_Exception_UnknownTemplateException('luigi');
- $this->assertEquals('Unknown template: luigi', $e->getMessage());
- }
-
- public function testGetTemplateName()
- {
- $e = new Mustache_Exception_UnknownTemplateException('yoshi');
- $this->assertEquals('yoshi', $e->getTemplateName());
- }
-
- public function testPrevious()
- {
- if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- $this->markTestSkipped('Exception chaining requires at least PHP 5.3');
- }
-
- $previous = new Exception();
- $e = new Mustache_Exception_UnknownTemplateException('foo', $previous);
- $this->assertSame($previous, $e->getPrevious());
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php
deleted file mode 100644
index c997a1d..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/ClosureQuirksTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_ClosureQuirksTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- public function testClosuresDontLikeItWhenYouTouchTheirProperties()
- {
- $tpl = $this->mustache->loadTemplate('{{ foo.bar }}');
- $this->assertEquals('', $tpl->render(array('foo' => function () {
- return 'FOO';
- })));
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/EngineTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/EngineTest.php
deleted file mode 100644
index 3ed70c7..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/EngineTest.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group pragmas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_EngineTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider pragmaData
- */
- public function testPragmasConstructorOption($pragmas, $helpers, $data, $tpl, $expect)
- {
- $mustache = new Mustache_Engine(array(
- 'pragmas' => $pragmas,
- 'helpers' => $helpers,
- ));
-
- $this->assertEquals($expect, $mustache->render($tpl, $data));
- }
-
- public function pragmaData()
- {
- $helpers = array(
- 'longdate' => function (\DateTime $value) {
- return $value->format('Y-m-d h:m:s');
- },
- );
-
- $data = array(
- 'date' => new DateTime('1/1/2000', new DateTimeZone('UTC')),
- );
-
- $tpl = '{{ date | longdate }}';
-
- return array(
- array(array(Mustache_Engine::PRAGMA_FILTERS), $helpers, $data, $tpl, '2000-01-01 12:01:00'),
- array(array(), $helpers, $data, $tpl, ''),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/FiltersTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/FiltersTest.php
deleted file mode 100644
index 7adc663..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/FiltersTest.php
+++ /dev/null
@@ -1,187 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group filters
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- /**
- * @dataProvider singleFilterData
- */
- public function testSingleFilter($tpl, $helpers, $data, $expect)
- {
- $this->mustache->setHelpers($helpers);
- $this->assertEquals($expect, $this->mustache->render($tpl, $data));
- }
-
- public function singleFilterData()
- {
- $helpers = array(
- 'longdate' => function (\DateTime $value) {
- return $value->format('Y-m-d h:m:s');
- },
- 'echo' => function ($value) {
- return array($value, $value, $value);
- },
- );
-
- return array(
- array(
- '{{% FILTERS }}{{ date | longdate }}',
- $helpers,
- (object) array('date' => new DateTime('1/1/2000', new DateTimeZone('UTC'))),
- '2000-01-01 12:01:00',
- ),
-
- array(
- '{{% FILTERS }}{{# word | echo }}{{ . }}!{{/ word | echo }}',
- $helpers,
- array('word' => 'bacon'),
- 'bacon!bacon!bacon!',
- ),
- );
- }
-
- public function testChainedFilters()
- {
- $tpl = $this->mustache->loadTemplate('{{% FILTERS }}{{ date | longdate | withbrackets }}');
-
- $this->mustache->addHelper('longdate', function (\DateTime $value) {
- return $value->format('Y-m-d h:m:s');
- });
-
- $this->mustache->addHelper('withbrackets', function ($value) {
- return sprintf('[[%s]]', $value);
- });
-
- $foo = new \StdClass();
- $foo->date = new DateTime('1/1/2000', new DateTimeZone('UTC'));
-
- $this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo));
- }
-
- const CHAINED_SECTION_FILTERS_TPL = <<<'EOS'
-{{% FILTERS }}
-{{# word | echo | with_index }}
-{{ key }}: {{ value }}
-{{/ word | echo | with_index }}
-EOS;
-
- public function testChainedSectionFilters()
- {
- $tpl = $this->mustache->loadTemplate(self::CHAINED_SECTION_FILTERS_TPL);
-
- $this->mustache->addHelper('echo', function ($value) {
- return array($value, $value, $value);
- });
-
- $this->mustache->addHelper('with_index', function ($value) {
- return array_map(function ($k, $v) {
- return array(
- 'key' => $k,
- 'value' => $v,
- );
- }, array_keys($value), $value);
- });
-
- $this->assertEquals("0: bacon\n1: bacon\n2: bacon\n", $tpl->render(array('word' => 'bacon')));
- }
-
- /**
- * @dataProvider interpolateFirstData
- */
- public function testInterpolateFirst($tpl, $data, $expect)
- {
- $this->assertEquals($expect, $this->mustache->render($tpl, $data));
- }
-
- public function interpolateFirstData()
- {
- $data = array(
- 'foo' => 'FOO',
- 'bar' => function ($value) {
- return ($value === 'FOO') ? 'win!' : 'fail :(';
- },
- );
-
- return array(
- array('{{% FILTERS }}{{ foo | bar }}', $data, 'win!'),
- array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}', $data, 'win!'),
- );
- }
-
- /**
- * @expectedException Mustache_Exception_UnknownFilterException
- * @dataProvider brokenPipeData
- */
- public function testThrowsExceptionForBrokenPipes($tpl, $data)
- {
- $this->mustache->render($tpl, $data);
- }
-
- public function brokenPipeData()
- {
- return array(
- array('{{% FILTERS }}{{ foo | bar }}', array()),
- array('{{% FILTERS }}{{ foo | bar }}', array('foo' => 'FOO')),
- array('{{% FILTERS }}{{ foo | bar }}', array('foo' => 'FOO', 'bar' => 'BAR')),
- array('{{% FILTERS }}{{ foo | bar }}', array('foo' => 'FOO', 'bar' => array(1, 2))),
- array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () {
- return 'BAR';
- })),
- array('{{% FILTERS }}{{ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () {
- return 'BAZ';
- })),
- array('{{% FILTERS }}{{ foo | bar | baz }}', array('bar' => function () {
- return 'BAR';
- })),
- array('{{% FILTERS }}{{ foo | bar | baz }}', array('baz' => function () {
- return 'BAZ';
- })),
- array('{{% FILTERS }}{{ foo | bar.baz }}', array('foo' => 'FOO', 'bar' => function () {
- return 'BAR';
- }, 'baz' => function () {
- return 'BAZ';
- })),
-
- array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}', array()),
- array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}', array('foo' => 'FOO')),
- array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}', array('foo' => 'FOO', 'bar' => 'BAR')),
- array('{{% FILTERS }}{{# foo | bar }}{{ . }}{{/ foo | bar }}', array('foo' => 'FOO', 'bar' => array(1, 2))),
- array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'bar' => function () {
- return 'BAR';
- })),
- array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('foo' => 'FOO', 'baz' => function () {
- return 'BAZ';
- })),
- array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('bar' => function () {
- return 'BAR';
- })),
- array('{{% FILTERS }}{{# foo | bar | baz }}{{ . }}{{/ foo | bar | baz }}', array('baz' => function () {
- return 'BAZ';
- })),
- array('{{% FILTERS }}{{# foo | bar.baz }}{{ . }}{{/ foo | bar.baz }}', array('foo' => 'FOO', 'bar' => function () {
- return 'BAR';
- }, 'baz' => function () {
- return 'BAZ';
- })),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php
deleted file mode 100644
index f926fdf..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/HigherOrderSectionsTest.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_HigherOrderSectionsTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- public function testAnonymousFunctionSectionCallback()
- {
- $tpl = $this->mustache->loadTemplate('{{#wrapper}}{{name}}{{/wrapper}}');
-
- $foo = new Mustache_Test_FiveThree_Functional_Foo();
- $foo->name = 'Mario';
- $foo->wrapper = function ($text) {
- return sprintf('<div class="anonymous">%s</div>', $text);
- };
-
- $this->assertEquals(sprintf('<div class="anonymous">%s</div>', $foo->name), $tpl->render($foo));
- }
-
- public function testSectionCallback()
- {
- $one = $this->mustache->loadTemplate('{{name}}');
- $two = $this->mustache->loadTemplate('{{#wrap}}{{name}}{{/wrap}}');
-
- $foo = new Mustache_Test_FiveThree_Functional_Foo();
- $foo->name = 'Luigi';
-
- $this->assertEquals($foo->name, $one->render($foo));
- $this->assertEquals(sprintf('<em>%s</em>', $foo->name), $two->render($foo));
- }
-
- public function testViewArrayAnonymousSectionCallback()
- {
- $tpl = $this->mustache->loadTemplate('{{#wrap}}{{name}}{{/wrap}}');
-
- $data = array(
- 'name' => 'Bob',
- 'wrap' => function ($text) {
- return sprintf('[[%s]]', $text);
- },
- );
-
- $this->assertEquals(sprintf('[[%s]]', $data['name']), $tpl->render($data));
- }
-}
-
-class Mustache_Test_FiveThree_Functional_Foo
-{
- public $name = 'Justin';
- public $lorem = 'Lorem ipsum dolor sit amet,';
- public $wrap;
-
- public function __construct()
- {
- $this->wrap = function ($text) {
- return sprintf('<em>%s</em>', $text);
- };
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php
deleted file mode 100644
index c67957e..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/LambdaHelperTest.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_LambdaHelperTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- public function testSectionLambdaHelper()
- {
- $one = $this->mustache->loadTemplate('{{name}}');
- $two = $this->mustache->loadTemplate('{{#lambda}}{{name}}{{/lambda}}');
-
- $foo = new StdClass();
- $foo->name = 'Mario';
- $foo->lambda = function ($text, $mustache) {
- return strtoupper($mustache->render($text));
- };
-
- $this->assertEquals('Mario', $one->render($foo));
- $this->assertEquals('MARIO', $two->render($foo));
- }
-
- public function testSectionLambdaHelperRespectsDelimiterChanges()
- {
- $tpl = $this->mustache->loadTemplate("{{=<% %>=}}\n<%# bang %><% value %><%/ bang %>");
-
- $data = new StdClass();
- $data->value = 'hello world';
- $data->bang = function ($text, $mustache) {
- return $mustache->render($text) . '!';
- };
-
- $this->assertEquals('hello world!', $tpl->render($data));
- }
-
- public function testLambdaHelperIsInvokable()
- {
- $one = $this->mustache->loadTemplate('{{name}}');
- $two = $this->mustache->loadTemplate('{{#lambda}}{{name}}{{/lambda}}');
-
- $foo = new StdClass();
- $foo->name = 'Mario';
- $foo->lambda = function ($text, $render) {
- return strtoupper($render($text));
- };
-
- $this->assertEquals('Mario', $one->render($foo));
- $this->assertEquals('MARIO', $two->render($foo));
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php
deleted file mode 100644
index d72686d..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/MustacheSpecTest.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A PHPUnit test case wrapping the Mustache Spec.
- *
- * @group mustache-spec
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_MustacheSpecTest extends Mustache_Test_SpecTestCase
-{
- /**
- * For some reason data providers can't mark tests skipped, so this test exists
- * simply to provide a 'skipped' test if the `spec` submodule isn't initialized.
- */
- public function testSpecInitialized()
- {
- if (!file_exists(dirname(__FILE__) . '/../../../../../vendor/spec/specs/')) {
- $this->markTestSkipped('Mustache spec submodule not initialized: run "git submodule update --init"');
- }
- }
-
- /**
- * @group lambdas
- * @dataProvider loadLambdasSpec
- */
- public function testLambdasSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template($this->prepareLambdasSpec($data)), $desc);
- }
-
- public function loadLambdasSpec()
- {
- return $this->loadSpec('~lambdas');
- }
-
- /**
- * Extract and lambdafy any 'lambda' values found in the $data array.
- */
- private function prepareLambdasSpec($data)
- {
- foreach ($data as $key => $val) {
- if ($key === 'lambda') {
- if (!isset($val['php'])) {
- $this->markTestSkipped(sprintf('PHP lambda test not implemented for this test.'));
- }
-
- $func = $val['php'];
- $data[$key] = function ($text = null) use ($func) {
- return eval($func);
- };
- } elseif (is_array($val)) {
- $data[$key] = $this->prepareLambdasSpec($val);
- }
- }
-
- return $data;
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php
deleted file mode 100644
index 605003c..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_PartialLambdaIndentTest extends PHPUnit_Framework_TestCase
-{
- public function testLambdasInsidePartialsAreIndentedProperly()
- {
- $src = <<<'EOS'
-<fieldset>
- {{> input }}
-</fieldset>
-
-EOS;
- $partial = <<<'EOS'
-<input placeholder="{{# _t }}Enter your name{{/ _t }}">
-
-EOS;
-
- $expected = <<<'EOS'
-<fieldset>
- <input placeholder="ENTER YOUR NAME">
-</fieldset>
-
-EOS;
-
- $m = new Mustache_Engine(array(
- 'partials' => array('input' => $partial),
- ));
-
- $tpl = $m->loadTemplate($src);
-
- $data = new Mustache_Test_FiveThree_Functional_ClassWithLambda();
- $this->assertEquals($expected, $tpl->render($data));
- }
-
- public function testLambdaInterpolationsInsidePartialsAreIndentedProperly()
- {
- $src = <<<'EOS'
-<fieldset>
- {{> input }}
-</fieldset>
-
-EOS;
- $partial = <<<'EOS'
-<input placeholder="{{ placeholder }}">
-
-EOS;
-
- $expected = <<<'EOS'
-<fieldset>
- <input placeholder="Enter your name">
-</fieldset>
-
-EOS;
-
- $m = new Mustache_Engine(array(
- 'partials' => array('input' => $partial),
- ));
-
- $tpl = $m->loadTemplate($src);
-
- $data = new Mustache_Test_FiveThree_Functional_ClassWithLambda();
- $this->assertEquals($expected, $tpl->render($data));
- }
-}
-
-class Mustache_Test_FiveThree_Functional_ClassWithLambda
-{
- public function _t()
- {
- return function ($val) {
- return strtoupper($val);
- };
- }
-
- public function placeholder()
- {
- return function () {
- return 'Enter your name';
- };
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php b/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php
deleted file mode 100644
index fc91072..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FiveThree/Functional/StrictCallablesTest.php
+++ /dev/null
@@ -1,135 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_FiveThree_Functional_StrictCallablesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider callables
- */
- public function testStrictCallables($strict, $name, $section, $expected)
- {
- $mustache = new Mustache_Engine(array('strict_callables' => $strict));
- $tpl = $mustache->loadTemplate('{{# section }}{{ name }}{{/ section }}');
-
- $data = new StdClass();
- $data->name = $name;
- $data->section = $section;
-
- $this->assertEquals($expected, $tpl->render($data));
- }
-
- public function callables()
- {
- $lambda = function ($tpl, $mustache) {
- return strtoupper($mustache->render($tpl));
- };
-
- return array(
- // Interpolation lambdas
- array(
- false,
- array($this, 'instanceName'),
- $lambda,
- 'YOSHI',
- ),
- array(
- false,
- array(__CLASS__, 'staticName'),
- $lambda,
- 'YOSHI',
- ),
- array(
- false,
- function () {
- return 'Yoshi';
- },
- $lambda,
- 'YOSHI',
- ),
-
- // Section lambdas
- array(
- false,
- 'Yoshi',
- array($this, 'instanceCallable'),
- 'YOSHI',
- ),
- array(
- false,
- 'Yoshi',
- array(__CLASS__, 'staticCallable'),
- 'YOSHI',
- ),
- array(
- false,
- 'Yoshi',
- $lambda,
- 'YOSHI',
- ),
-
- // Strict interpolation lambdas
- array(
- true,
- function () {
- return 'Yoshi';
- },
- $lambda,
- 'YOSHI',
- ),
-
- // Strict section lambdas
- array(
- true,
- 'Yoshi',
- array($this, 'instanceCallable'),
- 'YoshiYoshi',
- ),
- array(
- true,
- 'Yoshi',
- array(__CLASS__, 'staticCallable'),
- 'YoshiYoshi',
- ),
- array(
- true,
- 'Yoshi',
- function ($tpl, $mustache) {
- return strtoupper($mustache->render($tpl));
- },
- 'YOSHI',
- ),
- );
- }
-
- public function instanceCallable($tpl, $mustache)
- {
- return strtoupper($mustache->render($tpl));
- }
-
- public static function staticCallable($tpl, $mustache)
- {
- return strtoupper($mustache->render($tpl));
- }
-
- public function instanceName()
- {
- return 'Yoshi';
- }
-
- public static function staticName()
- {
- return 'Yoshi';
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php
deleted file mode 100644
index fddeacf..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/CallTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group magic_methods
- * @group functional
- */
-class Mustache_Test_Functional_CallTest extends PHPUnit_Framework_TestCase
-{
- public function testCallEatsContext()
- {
- $m = new Mustache_Engine();
- $tpl = $m->loadTemplate('{{# foo }}{{ label }}: {{ name }}{{/ foo }}');
-
- $foo = new Mustache_Test_Functional_ClassWithCall();
- $foo->name = 'Bob';
-
- $data = array('label' => 'name', 'foo' => $foo);
-
- $this->assertEquals('name: Bob', $tpl->render($data));
- }
-}
-
-class Mustache_Test_Functional_ClassWithCall
-{
- public $name;
-
- public function __call($method, $args)
- {
- return 'unknown value';
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/ExamplesTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/ExamplesTest.php
deleted file mode 100644
index d7ef51a..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/ExamplesTest.php
+++ /dev/null
@@ -1,142 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group examples
- * @group functional
- */
-class Mustache_Test_Functional_ExamplesTest extends PHPUnit_Framework_TestCase
-{
- /**
- * Test everything in the `examples` directory.
- *
- * @dataProvider getExamples
- *
- * @param string $context
- * @param string $source
- * @param array $partials
- * @param string $expected
- */
- public function testExamples($context, $source, $partials, $expected)
- {
- $mustache = new Mustache_Engine(array(
- 'partials' => $partials,
- ));
- $this->assertEquals($expected, $mustache->loadTemplate($source)->render($context));
- }
-
- /**
- * Data provider for testExamples method.
- *
- * 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). Optionally, the directory may contain a folder full of partials.
- *
- * @return array
- */
- public function getExamples()
- {
- $path = realpath(dirname(__FILE__) . '/../../../fixtures/examples');
- $examples = array();
-
- $handle = opendir($path);
- while (($file = readdir($handle)) !== false) {
- if ($file === '.' || $file === '..') {
- continue;
- }
-
- $fullpath = $path . '/' . $file;
- if (is_dir($fullpath)) {
- $examples[$file] = $this->loadExample($fullpath);
- }
- }
- closedir($handle);
-
- return $examples;
- }
-
- /**
- * Helper method to load an example given the full path.
- *
- * @param string $path
- *
- * @return array arguments for testExamples
- */
- private function loadExample($path)
- {
- $context = null;
- $source = null;
- $partials = array();
- $expected = null;
-
- $handle = opendir($path);
- while (($file = readdir($handle)) !== false) {
- $fullpath = $path . '/' . $file;
- $info = pathinfo($fullpath);
-
- if (is_dir($fullpath) && $info['basename'] === 'partials') {
- // load partials
- $partials = $this->loadPartials($fullpath);
- } elseif (is_file($fullpath)) {
- // load other files
- switch ($info['extension']) {
- case 'php':
- require_once $fullpath;
- $className = $info['filename'];
- $context = new $className();
- break;
-
- case 'mustache':
- $source = file_get_contents($fullpath);
- break;
-
- case 'txt':
- $expected = file_get_contents($fullpath);
- break;
- }
- }
- }
- closedir($handle);
-
- return array($context, $source, $partials, $expected);
- }
-
- /**
- * Helper method to load partials given an example directory.
- *
- * @param string $path
- *
- * @return array $partials
- */
- private function loadPartials($path)
- {
- $partials = array();
-
- $handle = opendir($path);
- while (($file = readdir($handle)) !== false) {
- if ($file === '.' || $file === '..') {
- continue;
- }
-
- $fullpath = $path . '/' . $file;
- $info = pathinfo($fullpath);
-
- if ($info['extension'] === 'mustache') {
- $partials[$info['filename']] = file_get_contents($fullpath);
- }
- }
- closedir($handle);
-
- return $partials;
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/HigherOrderSectionsTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/HigherOrderSectionsTest.php
deleted file mode 100644
index e2f68b0..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/HigherOrderSectionsTest.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group lambdas
- * @group functional
- */
-class Mustache_Test_Functional_HigherOrderSectionsTest extends Mustache_Test_FunctionalTestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- /**
- * @dataProvider sectionCallbackData
- */
- public function testSectionCallback($data, $tpl, $expect)
- {
- $this->assertEquals($expect, $this->mustache->render($tpl, $data));
- }
-
- public function sectionCallbackData()
- {
- $foo = new Mustache_Test_Functional_Foo();
- $foo->doublewrap = array($foo, 'wrapWithBoth');
-
- $bar = new Mustache_Test_Functional_Foo();
- $bar->trimmer = array(get_class($bar), 'staticTrim');
-
- return array(
- array($foo, '{{#doublewrap}}{{name}}{{/doublewrap}}', sprintf('<strong><em>%s</em></strong>', $foo->name)),
- array($bar, '{{#trimmer}} {{name}} {{/trimmer}}', $bar->name),
- );
- }
-
- public function testViewArraySectionCallback()
- {
- $tpl = $this->mustache->loadTemplate('{{#trim}} {{name}} {{/trim}}');
-
- $foo = new Mustache_Test_Functional_Foo();
-
- $data = array(
- 'name' => 'Bob',
- 'trim' => array(get_class($foo), 'staticTrim'),
- );
-
- $this->assertEquals($data['name'], $tpl->render($data));
- }
-
- public function testMonsters()
- {
- $tpl = $this->mustache->loadTemplate('{{#title}}{{title}} {{/title}}{{name}}');
-
- $frank = new Mustache_Test_Functional_Monster();
- $frank->title = 'Dr.';
- $frank->name = 'Frankenstein';
- $this->assertEquals('Dr. Frankenstein', $tpl->render($frank));
-
- $dracula = new Mustache_Test_Functional_Monster();
- $dracula->title = 'Count';
- $dracula->name = 'Dracula';
- $this->assertEquals('Count Dracula', $tpl->render($dracula));
- }
-
- public function testPassthroughOptimization()
- {
- $mustache = $this->getMock('Mustache_Engine', array('loadLambda'));
- $mustache->expects($this->never())
- ->method('loadLambda');
-
- $tpl = $mustache->loadTemplate('{{#wrap}}NAME{{/wrap}}');
-
- $foo = new Mustache_Test_Functional_Foo();
- $foo->wrap = array($foo, 'wrapWithEm');
-
- $this->assertEquals('<em>NAME</em>', $tpl->render($foo));
- }
-
- public function testWithoutPassthroughOptimization()
- {
- $mustache = $this->getMock('Mustache_Engine', array('loadLambda'));
- $mustache->expects($this->once())
- ->method('loadLambda')
- ->will($this->returnValue($mustache->loadTemplate('<em>{{ name }}</em>')));
-
- $tpl = $mustache->loadTemplate('{{#wrap}}{{name}}{{/wrap}}');
-
- $foo = new Mustache_Test_Functional_Foo();
- $foo->wrap = array($foo, 'wrapWithEm');
-
- $this->assertEquals('<em>' . $foo->name . '</em>', $tpl->render($foo));
- }
-
- /**
- * @dataProvider cacheLambdaTemplatesData
- */
- public function testCacheLambdaTemplatesOptionWorks($dirName, $tplPrefix, $enable, $expect)
- {
- $cacheDir = $this->setUpCacheDir($dirName);
- $mustache = new Mustache_Engine(array(
- 'template_class_prefix' => $tplPrefix,
- 'cache' => $cacheDir,
- 'cache_lambda_templates' => $enable,
- ));
-
- $tpl = $mustache->loadTemplate('{{#wrap}}{{name}}{{/wrap}}');
- $foo = new Mustache_Test_Functional_Foo();
- $foo->wrap = array($foo, 'wrapWithEm');
- $this->assertEquals('<em>' . $foo->name . '</em>', $tpl->render($foo));
- $this->assertCount($expect, glob($cacheDir . '/*.php'));
- }
-
- public function cacheLambdaTemplatesData()
- {
- return array(
- array('test_enabling_lambda_cache', '_TestEnablingLambdaCache_', true, 2),
- array('test_disabling_lambda_cache', '_TestDisablingLambdaCache_', false, 1),
- );
- }
-
- protected function setUpCacheDir($name)
- {
- $cacheDir = self::$tempDir . '/' . $name;
- if (file_exists($cacheDir)) {
- self::rmdir($cacheDir);
- }
- mkdir($cacheDir, 0777, true);
-
- return $cacheDir;
- }
-}
-
-class Mustache_Test_Functional_Foo
-{
- public $name = 'Justin';
- public $lorem = 'Lorem ipsum dolor sit amet,';
-
- public function wrapWithEm($text)
- {
- return sprintf('<em>%s</em>', $text);
- }
-
- /**
- * @param string $text
- */
- public function wrapWithStrong($text)
- {
- return sprintf('<strong>%s</strong>', $text);
- }
-
- public function wrapWithBoth($text)
- {
- return self::wrapWithStrong(self::wrapWithEm($text));
- }
-
- public static function staticTrim($text)
- {
- return trim($text);
- }
-}
-
-class Mustache_Test_Functional_Monster
-{
- public $title;
- public $name;
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/InheritanceTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/InheritanceTest.php
deleted file mode 100644
index b39555f..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/InheritanceTest.php
+++ /dev/null
@@ -1,526 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group inheritance
- * @group functional
- */
-class Mustache_Test_Functional_InheritanceTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine(array(
- 'pragmas' => array(Mustache_Engine::PRAGMA_BLOCKS),
- ));
- }
-
- public function getIllegalInheritanceExamples()
- {
- return array(
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- ),
- array(
- 'bar' => 'set by user',
- ),
- '{{< foo }}{{# bar }}{{$ baz }}{{/ baz }}{{/ bar }}{{/ foo }}',
- ),
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- ),
- array(
- ),
- '{{<foo}}{{^bar}}{{$baz}}set by template{{/baz}}{{/bar}}{{/foo}}',
- ),
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- 'qux' => 'I am a partial',
- ),
- array(
- ),
- '{{<foo}}{{>qux}}{{$baz}}set by template{{/baz}}{{/foo}}',
- ),
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- ),
- array(),
- '{{<foo}}{{=<% %>=}}<%={{ }}=%>{{/foo}}',
- ),
- );
- }
-
- public function getLegalInheritanceExamples()
- {
- return array(
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- ),
- array(
- 'bar' => 'set by user',
- ),
- '{{<foo}}{{bar}}{{$baz}}override{{/baz}}{{/foo}}',
- 'override',
- ),
- array(
- array(
- 'foo' => '{{$baz}}default content{{/baz}}',
- ),
- array(
- ),
- '{{<foo}}{{! ignore me }}{{$baz}}set by template{{/baz}}{{/foo}}',
- 'set by template',
- ),
- array(
- array(
- 'foo' => '{{$baz}}defualt content{{/baz}}',
- ),
- array(),
- '{{<foo}}set by template{{$baz}}also set by template{{/baz}}{{/foo}}',
- 'also set by template',
- ),
- array(
- array(
- 'foo' => '{{$a}}FAIL!{{/a}}',
- 'bar' => 'WIN!!',
- ),
- array(),
- '{{<foo}}{{$a}}{{<bar}}FAIL{{/bar}}{{/a}}{{/foo}}',
- 'WIN!!',
- ),
- );
- }
-
- public function testDefaultContent()
- {
- $tpl = $this->mustache->loadTemplate('{{$title}}Default title{{/title}}');
-
- $data = array();
-
- $this->assertEquals('Default title', $tpl->render($data));
- }
-
- public function testDefaultContentRendersVariables()
- {
- $tpl = $this->mustache->loadTemplate('{{$foo}}default {{bar}} content{{/foo}}');
-
- $data = array(
- 'bar' => 'baz',
- );
-
- $this->assertEquals('default baz content', $tpl->render($data));
- }
-
- public function testDefaultContentRendersTripleMustacheVariables()
- {
- $tpl = $this->mustache->loadTemplate('{{$foo}}default {{{bar}}} content{{/foo}}');
-
- $data = array(
- 'bar' => '<baz>',
- );
-
- $this->assertEquals('default <baz> content', $tpl->render($data));
- }
-
- public function testDefaultContentRendersSections()
- {
- $tpl = $this->mustache->loadTemplate(
- '{{$foo}}default {{#bar}}{{baz}}{{/bar}} content{{/foo}}'
- );
-
- $data = array(
- 'bar' => array('baz' => 'qux'),
- );
-
- $this->assertEquals('default qux content', $tpl->render($data));
- }
-
- public function testDefaultContentRendersNegativeSections()
- {
- $tpl = $this->mustache->loadTemplate(
- '{{$foo}}default {{^bar}}{{baz}}{{/bar}} content{{/foo}}'
- );
-
- $data = array(
- 'foo' => array('bar' => 'qux'),
- 'baz' => 'three',
- );
-
- $this->assertEquals('default three content', $tpl->render($data));
- }
-
- public function testMustacheInjectionInDefaultContent()
- {
- $tpl = $this->mustache->loadTemplate(
- '{{$foo}}default {{#bar}}{{baz}}{{/bar}} content{{/foo}}'
- );
-
- $data = array(
- 'bar' => array('baz' => '{{qux}}'),
- );
-
- $this->assertEquals('default {{qux}} content', $tpl->render($data));
- }
-
- public function testDefaultContentRenderedInsideIncludedTemplates()
- {
- $partials = array(
- 'include' => '{{$foo}}default content{{/foo}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}}{{/include}}'
- );
-
- $data = array();
-
- $this->assertEquals('default content', $tpl->render($data));
- }
-
- public function testOverriddenContent()
- {
- $partials = array(
- 'super' => '...{{$title}}Default title{{/title}}...',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<super}}{{$title}}sub template title{{/title}}{{/super}}'
- );
-
- $data = array();
-
- $this->assertEquals('...sub template title...', $tpl->render($data));
- }
-
- public function testOverriddenPartial()
- {
- $partials = array(
- 'partial' => '|{{$stuff}}...{{/stuff}}{{$default}} default{{/default}}|',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- 'test {{<partial}}{{$stuff}}override1{{/stuff}}{{/partial}} {{<partial}}{{$stuff}}override2{{/stuff}}{{/partial}}'
- );
-
- $data = array();
-
- $this->assertEquals('test |override1 default| |override2 default|', $tpl->render($data));
- }
-
- public function testDataDoesNotOverrideBlock()
- {
- $partials = array(
- 'include' => '{{$var}}var in include{{/var}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}}{{$var}}var in template{{/var}}{{/include}}'
- );
-
- $data = array(
- 'var' => 'var in data',
- );
-
- $this->assertEquals('var in template', $tpl->render($data));
- }
-
- public function testDataDoesNotOverrideDefaultBlockValue()
- {
- $partials = array(
- 'include' => '{{$var}}var in include{{/var}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}}{{/include}}'
- );
-
- $data = array(
- 'var' => 'var in data',
- );
-
- $this->assertEquals('var in include', $tpl->render($data));
- }
-
- public function testOverridePartialWithNewlines()
- {
- $partials = array(
- 'partial' => '{{$ballmer}}peaking{{/ballmer}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- "{{<partial}}{{\$ballmer}}\npeaked\n\n:(\n{{/ballmer}}{{/partial}}"
- );
-
- $data = array();
-
- $this->assertEquals("peaked\n\n:(\n", $tpl->render($data));
- }
-
- public function testInheritIndentationWhenOverridingAPartial()
- {
- $partials = array(
- 'partial' => 'stop:
- {{$nineties}}collaborate and listen{{/nineties}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<partial}}{{$nineties}}hammer time{{/nineties}}{{/partial}}'
- );
-
- $data = array();
-
- $this->assertEquals(
- 'stop:
- hammer time',
- $tpl->render($data)
- );
- }
-
- public function testInheritSpacingWhenOverridingAPartial()
- {
- $partials = array(
- 'parent' => 'collaborate_and{{$id}}{{/id}}',
- 'child' => '{{<parent}}{{$id}}_listen{{/id}}{{/parent}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- 'stop:
- {{>child}}'
- );
-
- $data = array();
-
- $this->assertEquals(
- 'stop:
- collaborate_and_listen',
- $tpl->render($data)
- );
- }
-
- public function testOverrideOneSubstitutionButNotTheOther()
- {
- $partials = array(
- 'partial' => '{{$stuff}}default one{{/stuff}}, {{$stuff2}}default two{{/stuff2}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<partial}}{{$stuff2}}override two{{/stuff2}}{{/partial}}'
- );
-
- $data = array();
-
- $this->assertEquals('default one, override two', $tpl->render($data));
- }
-
- public function testSuperTemplatesWithNoParameters()
- {
- $partials = array(
- 'include' => '{{$foo}}default content{{/foo}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{>include}}|{{<include}}{{/include}}'
- );
-
- $data = array();
-
- $this->assertEquals('default content|default content', $tpl->render($data));
- }
-
- public function testRecursionInInheritedTemplates()
- {
- $partials = array(
- 'include' => '{{$foo}}default content{{/foo}} {{$bar}}{{<include2}}{{/include2}}{{/bar}}',
- 'include2' => '{{$foo}}include2 default content{{/foo}} {{<include}}{{$bar}}don\'t recurse{{/bar}}{{/include}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}}{{$foo}}override{{/foo}}{{/include}}'
- );
-
- $data = array();
-
- $this->assertEquals('override override override don\'t recurse', $tpl->render($data));
- }
-
- public function testTopLevelSubstitutionsTakePrecedenceInMultilevelInheritance()
- {
- $partials = array(
- 'parent' => '{{<older}}{{$a}}p{{/a}}{{/older}}',
- 'older' => '{{<grandParent}}{{$a}}o{{/a}}{{/grandParent}}',
- 'grandParent' => '{{$a}}g{{/a}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<parent}}{{$a}}c{{/a}}{{/parent}}'
- );
-
- $data = array();
-
- $this->assertEquals('c', $tpl->render($data));
- }
-
- public function testMultiLevelInheritanceNoSubChild()
- {
- $partials = array(
- 'parent' => '{{<older}}{{$a}}p{{/a}}{{/older}}',
- 'older' => '{{<grandParent}}{{$a}}o{{/a}}{{/grandParent}}',
- 'grandParent' => '{{$a}}g{{/a}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<parent}}{{/parent}}'
- );
-
- $data = array();
-
- $this->assertEquals('p', $tpl->render($data));
- }
-
- public function testIgnoreTextInsideSuperTemplatesButParseArgs()
- {
- $partials = array(
- 'include' => '{{$foo}}default content{{/foo}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}} asdfasd {{$foo}}hmm{{/foo}} asdfasdfasdf {{/include}}'
- );
-
- $data = array();
-
- $this->assertEquals('hmm', $tpl->render($data));
- }
-
- public function testIgnoreTextInsideSuperTemplates()
- {
- $partials = array(
- 'include' => '{{$foo}}default content{{/foo}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<include}} asdfasd asdfasdfasdf {{/include}}'
- );
-
- $data = array();
-
- $this->assertEquals('default content', $tpl->render($data));
- }
-
- public function testInheritanceWithLazyEvaluation()
- {
- $partials = array(
- 'parent' => '{{#items}}{{$value}}ignored{{/value}}{{/items}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<parent}}{{$value}}<{{ . }}>{{/value}}{{/parent}}'
- );
-
- $data = array('items' => array(1, 2, 3));
-
- $this->assertEquals('<1><2><3>', $tpl->render($data));
- }
-
- public function testInheritanceWithLazyEvaluationWhitespaceIgnored()
- {
- $partials = array(
- 'parent' => '{{#items}}{{$value}}\n\nignored\n\n{{/value}}{{/items}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<parent}}\n\n\n{{$value}}<{{ . }}>{{/value}}\n\n{{/parent}}'
- );
-
- $data = array('items' => array(1, 2, 3));
-
- $this->assertEquals('<1><2><3>', $tpl->render($data));
- }
-
- public function testInheritanceWithLazyEvaluationAndSections()
- {
- $partials = array(
- 'parent' => '{{#items}}{{$value}}\n\nignored {{.}} {{#more}} there is more {{/more}}\n\n{{/value}}{{/items}}',
- );
-
- $this->mustache->setPartials($partials);
-
- $tpl = $this->mustache->loadTemplate(
- '{{<parent}}\n\n\n{{$value}}<{{ . }}>{{#more}} there is less {{/more}}{{/value}}\n\n{{/parent}}'
- );
-
- $data = array('items' => array(1, 2, 3), 'more' => 'stuff');
-
- $this->assertEquals('<1> there is less <2> there is less <3> there is less ', $tpl->render($data));
- }
-
- /**
- * @dataProvider getIllegalInheritanceExamples
- * @expectedException Mustache_Exception_SyntaxException
- * @expectedExceptionMessage Illegal content in < parent tag
- */
- public function testIllegalInheritanceExamples($partials, $data, $template)
- {
- $this->mustache->setPartials($partials);
- $tpl = $this->mustache->loadTemplate($template);
- $tpl->render($data);
- }
-
- /**
- * @dataProvider getLegalInheritanceExamples
- */
- public function testLegalInheritanceExamples($partials, $data, $template, $expect)
- {
- $this->mustache->setPartials($partials);
- $tpl = $this->mustache->loadTemplate($template);
- $this->assertSame($expect, $tpl->render($data));
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheInjectionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheInjectionTest.php
deleted file mode 100644
index d0bdb48..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheInjectionTest.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group mustache_injection
- * @group functional
- */
-class Mustache_Test_Functional_MustacheInjectionTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- /**
- * @dataProvider injectionData
- */
- public function testInjection($tpl, $data, $partials, $expect)
- {
- $this->mustache->setPartials($partials);
- $this->assertEquals($expect, $this->mustache->render($tpl, $data));
- }
-
- public function injectionData()
- {
- $interpolationData = array(
- 'a' => '{{ b }}',
- 'b' => 'FAIL',
- );
-
- $sectionData = array(
- 'a' => true,
- 'b' => '{{ c }}',
- 'c' => 'FAIL',
- );
-
- $lambdaInterpolationData = array(
- 'a' => array($this, 'lambdaInterpolationCallback'),
- 'b' => '{{ c }}',
- 'c' => 'FAIL',
- );
-
- $lambdaSectionData = array(
- 'a' => array($this, 'lambdaSectionCallback'),
- 'b' => '{{ c }}',
- 'c' => 'FAIL',
- );
-
- return array(
- array('{{ a }}', $interpolationData, array(), '{{ b }}'),
- array('{{{ a }}}', $interpolationData, array(), '{{ b }}'),
-
- array('{{# a }}{{ b }}{{/ a }}', $sectionData, array(), '{{ c }}'),
- array('{{# a }}{{{ b }}}{{/ a }}', $sectionData, array(), '{{ c }}'),
-
- array('{{> partial }}', $interpolationData, array('partial' => '{{ a }}'), '{{ b }}'),
- array('{{> partial }}', $interpolationData, array('partial' => '{{{ a }}}'), '{{ b }}'),
-
- array('{{ a }}', $lambdaInterpolationData, array(), '{{ c }}'),
- array('{{# a }}b{{/ a }}', $lambdaSectionData, array(), '{{ c }}'),
- );
- }
-
- public static function lambdaInterpolationCallback()
- {
- return '{{ b }}';
- }
-
- public static function lambdaSectionCallback($text)
- {
- return '{{ ' . $text . ' }}';
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheSpecTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheSpecTest.php
deleted file mode 100644
index 7ba0843..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheSpecTest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * A PHPUnit test case wrapping the Mustache Spec.
- *
- * @group mustache-spec
- * @group functional
- */
-class Mustache_Test_Functional_MustacheSpecTest extends Mustache_Test_SpecTestCase
-{
- /**
- * For some reason data providers can't mark tests skipped, so this test exists
- * simply to provide a 'skipped' test if the `spec` submodule isn't initialized.
- */
- public function testSpecInitialized()
- {
- if (!file_exists(dirname(__FILE__) . '/../../../../vendor/spec/specs/')) {
- $this->markTestSkipped('Mustache spec submodule not initialized: run "git submodule update --init"');
- }
- }
-
- /**
- * @group comments
- * @dataProvider loadCommentSpec
- */
- public function testCommentSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadCommentSpec()
- {
- return $this->loadSpec('comments');
- }
-
- /**
- * @group delimiters
- * @dataProvider loadDelimitersSpec
- */
- public function testDelimitersSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadDelimitersSpec()
- {
- return $this->loadSpec('delimiters');
- }
-
- /**
- * @group interpolation
- * @dataProvider loadInterpolationSpec
- */
- public function testInterpolationSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadInterpolationSpec()
- {
- return $this->loadSpec('interpolation');
- }
-
- /**
- * @group inverted
- * @group inverted-sections
- * @dataProvider loadInvertedSpec
- */
- public function testInvertedSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadInvertedSpec()
- {
- return $this->loadSpec('inverted');
- }
-
- /**
- * @group partials
- * @dataProvider loadPartialsSpec
- */
- public function testPartialsSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadPartialsSpec()
- {
- return $this->loadSpec('partials');
- }
-
- /**
- * @group sections
- * @dataProvider loadSectionsSpec
- */
- public function testSectionsSpec($desc, $source, $partials, $data, $expected)
- {
- $template = self::loadTemplate($source, $partials);
- $this->assertEquals($expected, $template->render($data), $desc);
- }
-
- public function loadSectionsSpec()
- {
- return $this->loadSpec('sections');
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/NestedPartialIndentTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/NestedPartialIndentTest.php
deleted file mode 100644
index 673339c..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/NestedPartialIndentTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group functional
- * @group partials
- */
-class Mustache_Test_Functional_NestedPartialIndentTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider partialsAndStuff
- */
- public function testNestedPartialsAreIndentedProperly($src, array $partials, $expected)
- {
- $m = new Mustache_Engine(array(
- 'partials' => $partials,
- ));
- $tpl = $m->loadTemplate($src);
- $this->assertEquals($expected, $tpl->render());
- }
-
- public function partialsAndStuff()
- {
- $partials = array(
- 'a' => ' {{> b }}',
- 'b' => ' {{> d }}',
- 'c' => ' {{> d }}{{> d }}',
- 'd' => 'D!',
- );
-
- return array(
- array(' {{> a }}', $partials, ' D!'),
- array(' {{> b }}', $partials, ' D!'),
- array(' {{> c }}', $partials, ' D!D!'),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Functional/ObjectSectionTest.php b/vendor/mustache/mustache/test/Mustache/Test/Functional/ObjectSectionTest.php
deleted file mode 100644
index 963b0f7..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Functional/ObjectSectionTest.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group sections
- * @group functional
- */
-class Mustache_Test_Functional_ObjectSectionTest extends PHPUnit_Framework_TestCase
-{
- private $mustache;
-
- public function setUp()
- {
- $this->mustache = new Mustache_Engine();
- }
-
- public function testBasicObject()
- {
- $tpl = $this->mustache->loadTemplate('{{#foo}}{{name}}{{/foo}}');
- $this->assertEquals('Foo', $tpl->render(new Mustache_Test_Functional_Alpha()));
- }
-
- /**
- * @group magic_methods
- */
- public function testObjectWithGet()
- {
- $tpl = $this->mustache->loadTemplate('{{#foo}}{{name}}{{/foo}}');
- $this->assertEquals('Foo', $tpl->render(new Mustache_Test_Functional_Beta()));
- }
-
- /**
- * @group magic_methods
- */
- public function testSectionObjectWithGet()
- {
- $tpl = $this->mustache->loadTemplate('{{#bar}}{{#foo}}{{name}}{{/foo}}{{/bar}}');
- $this->assertEquals('Foo', $tpl->render(new Mustache_Test_Functional_Gamma()));
- }
-
- public function testSectionObjectWithFunction()
- {
- $tpl = $this->mustache->loadTemplate('{{#foo}}{{name}}{{/foo}}');
- $alpha = new Mustache_Test_Functional_Alpha();
- $alpha->foo = new Mustache_Test_Functional_Delta();
- $this->assertEquals('Foo', $tpl->render($alpha));
- }
-}
-
-class Mustache_Test_Functional_Alpha
-{
- public $foo;
-
- public function __construct()
- {
- $this->foo = new StdClass();
- $this->foo->name = 'Foo';
- $this->foo->number = 1;
- }
-}
-
-class Mustache_Test_Functional_Beta
-{
- protected $_data = array();
-
- public function __construct()
- {
- $this->_data['foo'] = new StdClass();
- $this->_data['foo']->name = 'Foo';
- $this->_data['foo']->number = 1;
- }
-
- public function __isset($name)
- {
- return array_key_exists($name, $this->_data);
- }
-
- public function __get($name)
- {
- return $this->_data[$name];
- }
-}
-
-class Mustache_Test_Functional_Gamma
-{
- public $bar;
-
- public function __construct()
- {
- $this->bar = new Mustache_Test_Functional_Beta();
- }
-}
-
-class Mustache_Test_Functional_Delta
-{
- protected $_name = 'Foo';
-
- public function name()
- {
- return $this->_name;
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/FunctionalTestCase.php b/vendor/mustache/mustache/test/Mustache/Test/FunctionalTestCase.php
deleted file mode 100644
index 59185d1..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/FunctionalTestCase.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-abstract class Mustache_Test_FunctionalTestCase extends PHPUnit_Framework_TestCase
-{
- protected static $tempDir;
-
- public static function setUpBeforeClass()
- {
- self::$tempDir = sys_get_temp_dir() . '/mustache_test';
- if (file_exists(self::$tempDir)) {
- self::rmdir(self::$tempDir);
- }
- }
-
- /**
- * @param string $path
- */
- protected static function rmdir($path)
- {
- $path = rtrim($path, '/') . '/';
- $handle = opendir($path);
- while (($file = readdir($handle)) !== false) {
- if ($file === '.' || $file === '..') {
- continue;
- }
-
- $fullpath = $path . $file;
- if (is_dir($fullpath)) {
- self::rmdir($fullpath);
- } else {
- unlink($fullpath);
- }
- }
-
- closedir($handle);
- rmdir($path);
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/HelperCollectionTest.php b/vendor/mustache/mustache/test/Mustache/Test/HelperCollectionTest.php
deleted file mode 100644
index df64e97..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/HelperCollectionTest.php
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Test_HelperCollectionTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructor()
- {
- $foo = array($this, 'getFoo');
- $bar = 'BAR';
-
- $helpers = new Mustache_HelperCollection(array(
- 'foo' => $foo,
- 'bar' => $bar,
- ));
-
- $this->assertSame($foo, $helpers->get('foo'));
- $this->assertSame($bar, $helpers->get('bar'));
- }
-
- public static function getFoo()
- {
- echo 'foo';
- }
-
- public function testAccessorsAndMutators()
- {
- $foo = array($this, 'getFoo');
- $bar = 'BAR';
-
- $helpers = new Mustache_HelperCollection();
- $this->assertTrue($helpers->isEmpty());
- $this->assertFalse($helpers->has('foo'));
- $this->assertFalse($helpers->has('bar'));
-
- $helpers->add('foo', $foo);
- $this->assertFalse($helpers->isEmpty());
- $this->assertTrue($helpers->has('foo'));
- $this->assertFalse($helpers->has('bar'));
-
- $helpers->add('bar', $bar);
- $this->assertFalse($helpers->isEmpty());
- $this->assertTrue($helpers->has('foo'));
- $this->assertTrue($helpers->has('bar'));
-
- $helpers->remove('foo');
- $this->assertFalse($helpers->isEmpty());
- $this->assertFalse($helpers->has('foo'));
- $this->assertTrue($helpers->has('bar'));
- }
-
- public function testMagicMethods()
- {
- $foo = array($this, 'getFoo');
- $bar = 'BAR';
-
- $helpers = new Mustache_HelperCollection();
- $this->assertTrue($helpers->isEmpty());
- $this->assertFalse($helpers->has('foo'));
- $this->assertFalse($helpers->has('bar'));
- $this->assertFalse(isset($helpers->foo));
- $this->assertFalse(isset($helpers->bar));
-
- $helpers->foo = $foo;
- $this->assertFalse($helpers->isEmpty());
- $this->assertTrue($helpers->has('foo'));
- $this->assertFalse($helpers->has('bar'));
- $this->assertTrue(isset($helpers->foo));
- $this->assertFalse(isset($helpers->bar));
-
- $helpers->bar = $bar;
- $this->assertFalse($helpers->isEmpty());
- $this->assertTrue($helpers->has('foo'));
- $this->assertTrue($helpers->has('bar'));
- $this->assertTrue(isset($helpers->foo));
- $this->assertTrue(isset($helpers->bar));
-
- unset($helpers->foo);
- $this->assertFalse($helpers->isEmpty());
- $this->assertFalse($helpers->has('foo'));
- $this->assertTrue($helpers->has('bar'));
- $this->assertFalse(isset($helpers->foo));
- $this->assertTrue(isset($helpers->bar));
- }
-
- /**
- * @dataProvider getInvalidHelperArguments
- */
- public function testHelperCollectionIsntAfraidToThrowExceptions($helpers = array(), $actions = array(), $exception = null)
- {
- if ($exception) {
- $this->setExpectedException($exception);
- }
-
- $helpers = new Mustache_HelperCollection($helpers);
-
- foreach ($actions as $method => $args) {
- call_user_func_array(array($helpers, $method), $args);
- }
- }
-
- public function getInvalidHelperArguments()
- {
- return array(
- array(
- 'not helpers',
- array(),
- 'InvalidArgumentException',
- ),
- array(
- array(),
- array('get' => array('foo')),
- 'InvalidArgumentException',
- ),
- array(
- array('foo' => 'FOO'),
- array('get' => array('foo')),
- null,
- ),
- array(
- array('foo' => 'FOO'),
- array('get' => array('bar')),
- 'InvalidArgumentException',
- ),
- array(
- array('foo' => 'FOO'),
- array(
- 'add' => array('bar', 'BAR'),
- 'get' => array('bar'),
- ),
- null,
- ),
- array(
- array('foo' => 'FOO'),
- array(
- 'get' => array('foo'),
- 'remove' => array('foo'),
- ),
- null,
- ),
- array(
- array('foo' => 'FOO'),
- array(
- 'remove' => array('foo'),
- 'get' => array('foo'),
- ),
- 'InvalidArgumentException',
- ),
- array(
- array(),
- array('remove' => array('foo')),
- 'InvalidArgumentException',
- ),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Loader/ArrayLoaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/Loader/ArrayLoaderTest.php
deleted file mode 100644
index 9960c9b..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Loader/ArrayLoaderTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Loader_ArrayLoaderTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructor()
- {
- $loader = new Mustache_Loader_ArrayLoader(array(
- 'foo' => 'bar',
- ));
-
- $this->assertEquals('bar', $loader->load('foo'));
- }
-
- public function testSetAndLoadTemplates()
- {
- $loader = new Mustache_Loader_ArrayLoader(array(
- 'foo' => 'bar',
- ));
- $this->assertEquals('bar', $loader->load('foo'));
-
- $loader->setTemplate('baz', 'qux');
- $this->assertEquals('qux', $loader->load('baz'));
-
- $loader->setTemplates(array(
- 'foo' => 'FOO',
- 'baz' => 'BAZ',
- ));
- $this->assertEquals('FOO', $loader->load('foo'));
- $this->assertEquals('BAZ', $loader->load('baz'));
- }
-
- /**
- * @expectedException Mustache_Exception_UnknownTemplateException
- */
- public function testMissingTemplatesThrowExceptions()
- {
- $loader = new Mustache_Loader_ArrayLoader();
- $loader->load('not_a_real_template');
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Loader/CascadingLoaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/Loader/CascadingLoaderTest.php
deleted file mode 100644
index 6d97d8d..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Loader/CascadingLoaderTest.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Loader_CascadingLoaderTest extends PHPUnit_Framework_TestCase
-{
- public function testLoadTemplates()
- {
- $loader = new Mustache_Loader_CascadingLoader(array(
- new Mustache_Loader_ArrayLoader(array('foo' => '{{ foo }}')),
- new Mustache_Loader_ArrayLoader(array('bar' => '{{#bar}}BAR{{/bar}}')),
- ));
-
- $this->assertEquals('{{ foo }}', $loader->load('foo'));
- $this->assertEquals('{{#bar}}BAR{{/bar}}', $loader->load('bar'));
- }
-
- /**
- * @expectedException Mustache_Exception_UnknownTemplateException
- */
- public function testMissingTemplatesThrowExceptions()
- {
- $loader = new Mustache_Loader_CascadingLoader(array(
- new Mustache_Loader_ArrayLoader(array('foo' => '{{ foo }}')),
- new Mustache_Loader_ArrayLoader(array('bar' => '{{#bar}}BAR{{/bar}}')),
- ));
-
- $loader->load('not_a_real_template');
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Loader/FilesystemLoaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/Loader/FilesystemLoaderTest.php
deleted file mode 100644
index 75880d4..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Loader/FilesystemLoaderTest.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Loader_FilesystemLoaderTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructor()
- {
- $baseDir = realpath(dirname(__FILE__) . '/../../../fixtures/templates');
- $loader = new Mustache_Loader_FilesystemLoader($baseDir, array('extension' => '.ms'));
- $this->assertEquals('alpha contents', $loader->load('alpha'));
- $this->assertEquals('beta contents', $loader->load('beta.ms'));
- }
-
- public function testTrailingSlashes()
- {
- $baseDir = dirname(__FILE__) . '/../../../fixtures/templates/';
- $loader = new Mustache_Loader_FilesystemLoader($baseDir);
- $this->assertEquals('one contents', $loader->load('one'));
- }
-
- public function testConstructorWithProtocol()
- {
- $baseDir = realpath(dirname(__FILE__) . '/../../../fixtures/templates');
-
- $loader = new Mustache_Loader_FilesystemLoader('test://' . $baseDir, array('extension' => '.ms'));
- $this->assertEquals('alpha contents', $loader->load('alpha'));
- $this->assertEquals('beta contents', $loader->load('beta.ms'));
- }
-
- public function testLoadTemplates()
- {
- $baseDir = realpath(dirname(__FILE__) . '/../../../fixtures/templates');
- $loader = new Mustache_Loader_FilesystemLoader($baseDir);
- $this->assertEquals('one contents', $loader->load('one'));
- $this->assertEquals('two contents', $loader->load('two.mustache'));
- }
-
- public function testEmptyExtensionString()
- {
- $baseDir = realpath(dirname(__FILE__) . '/../../../fixtures/templates');
-
- $loader = new Mustache_Loader_FilesystemLoader($baseDir, array('extension' => ''));
- $this->assertEquals('one contents', $loader->load('one.mustache'));
- $this->assertEquals('alpha contents', $loader->load('alpha.ms'));
-
- $loader = new Mustache_Loader_FilesystemLoader($baseDir, array('extension' => null));
- $this->assertEquals('two contents', $loader->load('two.mustache'));
- $this->assertEquals('beta contents', $loader->load('beta.ms'));
- }
-
- /**
- * @expectedException Mustache_Exception_RuntimeException
- */
- public function testMissingBaseDirThrowsException()
- {
- new Mustache_Loader_FilesystemLoader(dirname(__FILE__) . '/not_a_directory');
- }
-
- /**
- * @expectedException Mustache_Exception_UnknownTemplateException
- */
- public function testMissingTemplateThrowsException()
- {
- $baseDir = realpath(dirname(__FILE__) . '/../../../fixtures/templates');
- $loader = new Mustache_Loader_FilesystemLoader($baseDir);
-
- $loader->load('fake');
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Loader/InlineLoaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/Loader/InlineLoaderTest.php
deleted file mode 100644
index 2f1d414..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Loader/InlineLoaderTest.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2015 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Loader_InlineLoaderTest extends PHPUnit_Framework_TestCase
-{
- public function testLoadTemplates()
- {
- $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
- $this->assertEquals('{{ foo }}', $loader->load('foo'));
- $this->assertEquals('{{#bar}}BAR{{/bar}}', $loader->load('bar'));
- }
-
- /**
- * @expectedException Mustache_Exception_UnknownTemplateException
- */
- public function testMissingTemplatesThrowExceptions()
- {
- $loader = new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__);
- $loader->load('not_a_real_template');
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testInvalidOffsetThrowsException()
- {
- new Mustache_Loader_InlineLoader(__FILE__, 'notanumber');
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testInvalidFileThrowsException()
- {
- new Mustache_Loader_InlineLoader('notarealfile', __COMPILER_HALT_OFFSET__);
- }
-}
-
-__halt_compiler();
-
-@@ foo
-{{ foo }}
-
-@@ bar
-{{#bar}}BAR{{/bar}}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Loader/StringLoaderTest.php b/vendor/mustache/mustache/test/Mustache/Test/Loader/StringLoaderTest.php
deleted file mode 100644
index f2e47d9..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Loader/StringLoaderTest.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Loader_StringLoaderTest extends PHPUnit_Framework_TestCase
-{
- public function testLoadTemplates()
- {
- $loader = new Mustache_Loader_StringLoader();
-
- $this->assertEquals('foo', $loader->load('foo'));
- $this->assertEquals('{{ bar }}', $loader->load('{{ bar }}'));
- $this->assertEquals("\n{{! comment }}\n", $loader->load("\n{{! comment }}\n"));
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Logger/AbstractLoggerTest.php b/vendor/mustache/mustache/test/Mustache/Test/Logger/AbstractLoggerTest.php
deleted file mode 100644
index e8865e9..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Logger/AbstractLoggerTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Logger_AbstractLoggerTest extends PHPUnit_Framework_TestCase
-{
- public function testEverything()
- {
- $logger = new Mustache_Test_Logger_TestLogger();
-
- $logger->emergency('emergency message');
- $logger->alert('alert message');
- $logger->critical('critical message');
- $logger->error('error message');
- $logger->warning('warning message');
- $logger->notice('notice message');
- $logger->info('info message');
- $logger->debug('debug message');
-
- $expected = array(
- array(Mustache_Logger::EMERGENCY, 'emergency message', array()),
- array(Mustache_Logger::ALERT, 'alert message', array()),
- array(Mustache_Logger::CRITICAL, 'critical message', array()),
- array(Mustache_Logger::ERROR, 'error message', array()),
- array(Mustache_Logger::WARNING, 'warning message', array()),
- array(Mustache_Logger::NOTICE, 'notice message', array()),
- array(Mustache_Logger::INFO, 'info message', array()),
- array(Mustache_Logger::DEBUG, 'debug message', array()),
- );
-
- $this->assertEquals($expected, $logger->log);
- }
-}
-
-class Mustache_Test_Logger_TestLogger extends Mustache_Logger_AbstractLogger
-{
- public $log = array();
-
- /**
- * Logs with an arbitrary level.
- *
- * @param mixed $level
- * @param string $message
- * @param array $context
- */
- public function log($level, $message, array $context = array())
- {
- $this->log[] = array($level, $message, $context);
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/Logger/StreamLoggerTest.php b/vendor/mustache/mustache/test/Mustache/Test/Logger/StreamLoggerTest.php
deleted file mode 100644
index 6cb198a..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/Logger/StreamLoggerTest.php
+++ /dev/null
@@ -1,209 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_Logger_StreamLoggerTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider acceptsStreamData
- */
- public function testAcceptsStream($name, $stream)
- {
- $logger = new Mustache_Logger_StreamLogger($stream);
- $logger->log(Mustache_Logger::CRITICAL, 'message');
-
- $this->assertEquals("CRITICAL: message\n", file_get_contents($name));
- }
-
- public function acceptsStreamData()
- {
- $one = tempnam(sys_get_temp_dir(), 'mustache-test');
- $two = tempnam(sys_get_temp_dir(), 'mustache-test');
-
- return array(
- array($one, $one),
- array($two, fopen($two, 'a')),
- );
- }
-
- /**
- * @expectedException Mustache_Exception_LogicException
- */
- public function testPrematurelyClosedStreamThrowsException()
- {
- $stream = tmpfile();
- $logger = new Mustache_Logger_StreamLogger($stream);
- fclose($stream);
-
- $logger->log(Mustache_Logger::CRITICAL, 'message');
- }
-
- /**
- * @dataProvider getLevels
- */
- public function testLoggingThresholds($logLevel, $level, $shouldLog)
- {
- $stream = tmpfile();
- $logger = new Mustache_Logger_StreamLogger($stream, $logLevel);
- $logger->log($level, 'logged');
-
- rewind($stream);
- $result = fread($stream, 1024);
-
- if ($shouldLog) {
- $this->assertContains('logged', $result);
- } else {
- $this->assertEmpty($result);
- }
- }
-
- public function getLevels()
- {
- // $logLevel, $level, $shouldLog
- return array(
- // identities
- array(Mustache_Logger::EMERGENCY, Mustache_Logger::EMERGENCY, true),
- array(Mustache_Logger::ALERT, Mustache_Logger::ALERT, true),
- array(Mustache_Logger::CRITICAL, Mustache_Logger::CRITICAL, true),
- array(Mustache_Logger::ERROR, Mustache_Logger::ERROR, true),
- array(Mustache_Logger::WARNING, Mustache_Logger::WARNING, true),
- array(Mustache_Logger::NOTICE, Mustache_Logger::NOTICE, true),
- array(Mustache_Logger::INFO, Mustache_Logger::INFO, true),
- array(Mustache_Logger::DEBUG, Mustache_Logger::DEBUG, true),
-
- // one above
- array(Mustache_Logger::ALERT, Mustache_Logger::EMERGENCY, true),
- array(Mustache_Logger::CRITICAL, Mustache_Logger::ALERT, true),
- array(Mustache_Logger::ERROR, Mustache_Logger::CRITICAL, true),
- array(Mustache_Logger::WARNING, Mustache_Logger::ERROR, true),
- array(Mustache_Logger::NOTICE, Mustache_Logger::WARNING, true),
- array(Mustache_Logger::INFO, Mustache_Logger::NOTICE, true),
- array(Mustache_Logger::DEBUG, Mustache_Logger::INFO, true),
-
- // one below
- array(Mustache_Logger::EMERGENCY, Mustache_Logger::ALERT, false),
- array(Mustache_Logger::ALERT, Mustache_Logger::CRITICAL, false),
- array(Mustache_Logger::CRITICAL, Mustache_Logger::ERROR, false),
- array(Mustache_Logger::ERROR, Mustache_Logger::WARNING, false),
- array(Mustache_Logger::WARNING, Mustache_Logger::NOTICE, false),
- array(Mustache_Logger::NOTICE, Mustache_Logger::INFO, false),
- array(Mustache_Logger::INFO, Mustache_Logger::DEBUG, false),
- );
- }
-
- /**
- * @dataProvider getLogMessages
- */
- public function testLogging($level, $message, $context, $expected)
- {
- $stream = tmpfile();
- $logger = new Mustache_Logger_StreamLogger($stream, Mustache_Logger::DEBUG);
- $logger->log($level, $message, $context);
-
- rewind($stream);
- $result = fread($stream, 1024);
-
- $this->assertEquals($expected, $result);
- }
-
- public function getLogMessages()
- {
- // $level, $message, $context, $expected
- return array(
- array(Mustache_Logger::DEBUG, 'debug message', array(), "DEBUG: debug message\n"),
- array(Mustache_Logger::INFO, 'info message', array(), "INFO: info message\n"),
- array(Mustache_Logger::NOTICE, 'notice message', array(), "NOTICE: notice message\n"),
- array(Mustache_Logger::WARNING, 'warning message', array(), "WARNING: warning message\n"),
- array(Mustache_Logger::ERROR, 'error message', array(), "ERROR: error message\n"),
- array(Mustache_Logger::CRITICAL, 'critical message', array(), "CRITICAL: critical message\n"),
- array(Mustache_Logger::ALERT, 'alert message', array(), "ALERT: alert message\n"),
- array(Mustache_Logger::EMERGENCY, 'emergency message', array(), "EMERGENCY: emergency message\n"),
-
- // with context
- array(
- Mustache_Logger::ERROR,
- 'error message',
- array('name' => 'foo', 'number' => 42),
- "ERROR: error message\n",
- ),
-
- // with interpolation
- array(
- Mustache_Logger::ERROR,
- 'error {name}-{number}',
- array('name' => 'foo', 'number' => 42),
- "ERROR: error foo-42\n",
- ),
-
- // with iterpolation false positive
- array(
- Mustache_Logger::ERROR,
- 'error {nothing}',
- array('name' => 'foo', 'number' => 42),
- "ERROR: error {nothing}\n",
- ),
-
- // with interpolation injection
- array(
- Mustache_Logger::ERROR,
- '{foo}',
- array('foo' => '{bar}', 'bar' => 'FAIL'),
- "ERROR: {bar}\n",
- ),
- );
- }
-
- public function testChangeLoggingLevels()
- {
- $stream = tmpfile();
- $logger = new Mustache_Logger_StreamLogger($stream);
-
- $logger->setLevel(Mustache_Logger::ERROR);
- $this->assertEquals(Mustache_Logger::ERROR, $logger->getLevel());
-
- $logger->log(Mustache_Logger::WARNING, 'ignore this');
-
- $logger->setLevel(Mustache_Logger::INFO);
- $this->assertEquals(Mustache_Logger::INFO, $logger->getLevel());
-
- $logger->log(Mustache_Logger::WARNING, 'log this');
-
- $logger->setLevel(Mustache_Logger::CRITICAL);
- $this->assertEquals(Mustache_Logger::CRITICAL, $logger->getLevel());
-
- $logger->log(Mustache_Logger::ERROR, 'ignore this');
-
- rewind($stream);
- $result = fread($stream, 1024);
-
- $this->assertEquals("WARNING: log this\n", $result);
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testThrowsInvalidArgumentExceptionWhenSettingUnknownLevels()
- {
- $logger = new Mustache_Logger_StreamLogger(tmpfile());
- $logger->setLevel('bacon');
- }
-
- /**
- * @expectedException Mustache_Exception_InvalidArgumentException
- */
- public function testThrowsInvalidArgumentExceptionWhenLoggingUnknownLevels()
- {
- $logger = new Mustache_Logger_StreamLogger(tmpfile());
- $logger->log('bacon', 'CODE BACON ERROR!');
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/ParserTest.php b/vendor/mustache/mustache/test/Mustache/Test/ParserTest.php
deleted file mode 100644
index 85e5701..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/ParserTest.php
+++ /dev/null
@@ -1,425 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_ParserTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getTokenSets
- */
- public function testParse($tokens, $expected)
- {
- $parser = new Mustache_Parser();
- $this->assertEquals($expected, $parser->parse($tokens));
- }
-
- public function getTokenSets()
- {
- return array(
- array(
- array(),
- array(),
- ),
-
- array(
- array(array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'text',
- )),
- array(array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'text',
- )),
- ),
-
- array(
- array(array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::NAME => 'name',
- )),
- array(array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::NAME => 'name',
- )),
- ),
-
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'foo',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_INVERTED,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- Mustache_Tokenizer::NAME => 'parent',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::NAME => 'name',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 456,
- Mustache_Tokenizer::NAME => 'parent',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- ),
-
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'foo',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_INVERTED,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- Mustache_Tokenizer::END => 456,
- Mustache_Tokenizer::NODES => array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::NAME => 'name',
- ),
- ),
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- ),
- ),
-
- // This *would* be an invalid inheritance parse tree, but that pragma
- // isn't enabled so it'll thunk it back into an "escaped" token:
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- ),
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => '$foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- ),
- ),
-
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => ' ',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_DELIM_CHANGE,
- Mustache_Tokenizer::LINE => 0,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => " \n",
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '[[',
- Mustache_Tokenizer::CTAG => ']]',
- Mustache_Tokenizer::LINE => 1,
- ),
- ),
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '[[',
- Mustache_Tokenizer::CTAG => ']]',
- Mustache_Tokenizer::LINE => 1,
- ),
- ),
- ),
-
- );
- }
-
- /**
- * @dataProvider getInheritanceTokenSets
- */
- public function testParseWithInheritance($tokens, $expected)
- {
- $parser = new Mustache_Parser();
- $parser->setPragmas(array(Mustache_Engine::PRAGMA_BLOCKS));
- $this->assertEquals($expected, $parser->parse($tokens));
- }
-
- public function getInheritanceTokenSets()
- {
- return array(
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_PARENT,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 8,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'bar',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 16,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'baz',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'bar',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 19,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 27,
- ),
- ),
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_PARENT,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 8,
- Mustache_Tokenizer::END => 27,
- Mustache_Tokenizer::NODES => array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_ARG,
- Mustache_Tokenizer::NAME => 'bar',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 16,
- Mustache_Tokenizer::END => 19,
- Mustache_Tokenizer::NODES => array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'baz',
- ),
- ),
- ),
- ),
- ),
- ),
- ),
-
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 11,
- ),
- ),
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::END => 11,
- Mustache_Tokenizer::NODES => array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- ),
- ),
- ),
- ),
- );
- }
-
- /**
- * @dataProvider getBadParseTrees
- * @expectedException Mustache_Exception_SyntaxException
- */
- public function testParserThrowsExceptions($tokens)
- {
- $parser = new Mustache_Parser();
- $parser->parse($tokens);
- }
-
- public function getBadParseTrees()
- {
- return array(
- // no close
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_SECTION,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- ),
- ),
-
- // no close inverted
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_INVERTED,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- ),
- ),
-
- // no opening inverted
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- ),
- ),
-
- // weird nesting
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_SECTION,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_SECTION,
- Mustache_Tokenizer::NAME => 'child',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'parent',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'child',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 123,
- ),
- ),
- ),
-
- // This *would* be a valid inheritance parse tree, but that pragma
- // isn't enabled here so it's going to fail :)
- array(
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'bar',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'foo',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 11,
- ),
- ),
- ),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/SpecTestCase.php b/vendor/mustache/mustache/test/Mustache/Test/SpecTestCase.php
deleted file mode 100644
index 9fb4a15..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/SpecTestCase.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-abstract class Mustache_Test_SpecTestCase extends PHPUnit_Framework_TestCase
-{
- protected static $mustache;
-
- public static function setUpBeforeClass()
- {
- self::$mustache = new Mustache_Engine();
- }
-
- protected static function loadTemplate($source, $partials)
- {
- self::$mustache->setPartials($partials);
-
- return self::$mustache->loadTemplate($source);
- }
-
- /**
- * Data provider for the mustache spec test.
- *
- * Loads YAML files from the spec and converts them to PHPisms.
- *
- * @param string $name
- *
- * @return array
- */
- protected function loadSpec($name)
- {
- $filename = dirname(__FILE__) . '/../../../vendor/spec/specs/' . $name . '.yml';
- if (!file_exists($filename)) {
- return array();
- }
-
- $data = array();
- $yaml = new sfYamlParser();
- $file = file_get_contents($filename);
-
- // @hack: pre-process the 'lambdas' spec so the Symfony YAML parser doesn't complain.
- if ($name === '~lambdas') {
- $file = str_replace(" !code\n", "\n", $file);
- }
-
- $spec = $yaml->parse($file);
-
- foreach ($spec['tests'] as $test) {
- $data[] = array(
- $test['name'] . ': ' . $test['desc'],
- $test['template'],
- isset($test['partials']) ? $test['partials'] : array(),
- $test['data'],
- $test['expected'],
- );
- }
-
- return $data;
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/TemplateTest.php b/vendor/mustache/mustache/test/Mustache/Test/TemplateTest.php
deleted file mode 100644
index bb260d2..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/TemplateTest.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_TemplateTest extends PHPUnit_Framework_TestCase
-{
- public function testConstructor()
- {
- $mustache = new Mustache_Engine();
- $template = new Mustache_Test_TemplateStub($mustache);
- $this->assertSame($mustache, $template->getMustache());
- }
-
- public function testRendering()
- {
- $rendered = '<< wheee >>';
- $mustache = new Mustache_Engine();
- $template = new Mustache_Test_TemplateStub($mustache);
- $template->rendered = $rendered;
- $context = new Mustache_Context();
-
- if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
- $this->assertEquals($rendered, $template());
- }
-
- $this->assertEquals($rendered, $template->render());
- $this->assertEquals($rendered, $template->renderInternal($context));
- $this->assertEquals($rendered, $template->render(array('foo' => 'bar')));
- }
-}
-
-class Mustache_Test_TemplateStub extends Mustache_Template
-{
- public $rendered;
-
- public function getMustache()
- {
- return $this->mustache;
- }
-
- public function renderInternal(Mustache_Context $context, $indent = '', $escape = false)
- {
- return $this->rendered;
- }
-}
diff --git a/vendor/mustache/mustache/test/Mustache/Test/TokenizerTest.php b/vendor/mustache/mustache/test/Mustache/Test/TokenizerTest.php
deleted file mode 100644
index 09be3fe..0000000
--- a/vendor/mustache/mustache/test/Mustache/Test/TokenizerTest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * @group unit
- */
-class Mustache_Test_TokenizerTest extends PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getTokens
- */
- public function testScan($text, $delimiters, $expected)
- {
- $tokenizer = new Mustache_Tokenizer();
- $this->assertSame($expected, $tokenizer->scan($text, $delimiters));
- }
-
- /**
- * @expectedException Mustache_Exception_SyntaxException
- */
- public function testUnevenBracesThrowExceptions()
- {
- $tokenizer = new Mustache_Tokenizer();
-
- $text = '{{{ name }}';
- $tokenizer->scan($text, null);
- }
-
- /**
- * @expectedException Mustache_Exception_SyntaxException
- */
- public function testUnevenBracesWithCustomDelimiterThrowExceptions()
- {
- $tokenizer = new Mustache_Tokenizer();
-
- $text = '<%{ name %>';
- $tokenizer->scan($text, '<% %>');
- }
-
- public function getTokens()
- {
- return array(
- array(
- 'text',
- null,
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'text',
- ),
- ),
- ),
-
- array(
- 'text',
- '<<< >>>',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'text',
- ),
- ),
- ),
-
- array(
- '{{ name }}',
- null,
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 10,
- ),
- ),
- ),
-
- array(
- '{{ name }}',
- '<<< >>>',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => '{{ name }}',
- ),
- ),
- ),
-
- array(
- '<<< name >>>',
- '<<< >>>',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'name',
- Mustache_Tokenizer::OTAG => '<<<',
- Mustache_Tokenizer::CTAG => '>>>',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 12,
- ),
- ),
- ),
-
- array(
- "{{{ a }}}\n{{# b }} \n{{= | | =}}| c ||/ b |\n|{ d }|",
- null,
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_UNESCAPED,
- Mustache_Tokenizer::NAME => 'a',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 8,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => "\n",
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_SECTION,
- Mustache_Tokenizer::NAME => 'b',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 1,
- Mustache_Tokenizer::INDEX => 18,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 1,
- Mustache_Tokenizer::VALUE => " \n",
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_DELIM_CHANGE,
- Mustache_Tokenizer::LINE => 2,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'c',
- Mustache_Tokenizer::OTAG => '|',
- Mustache_Tokenizer::CTAG => '|',
- Mustache_Tokenizer::LINE => 2,
- Mustache_Tokenizer::INDEX => 37,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'b',
- Mustache_Tokenizer::OTAG => '|',
- Mustache_Tokenizer::CTAG => '|',
- Mustache_Tokenizer::LINE => 2,
- Mustache_Tokenizer::INDEX => 37,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 2,
- Mustache_Tokenizer::VALUE => "\n",
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_UNESCAPED,
- Mustache_Tokenizer::NAME => 'd',
- Mustache_Tokenizer::OTAG => '|',
- Mustache_Tokenizer::CTAG => '|',
- Mustache_Tokenizer::LINE => 3,
- Mustache_Tokenizer::INDEX => 51,
- ),
-
- ),
- ),
-
- // See https://github.com/bobthecow/mustache.php/issues/183
- array(
- '{{# a }}0{{/ a }}',
- null,
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_SECTION,
- Mustache_Tokenizer::NAME => 'a',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 8,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => '0',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'a',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 9,
- ),
- ),
- ),
-
- // custom delimiters don't swallow the next character, even if it is a }, }}}, or the same delimiter
- array(
- '<% a %>} <% b %>%> <% c %>}}}',
- '<% %>',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'a',
- Mustache_Tokenizer::OTAG => '<%',
- Mustache_Tokenizer::CTAG => '%>',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 7,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => '} ',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'b',
- Mustache_Tokenizer::OTAG => '<%',
- Mustache_Tokenizer::CTAG => '%>',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 16,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => '%> ',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_ESCAPED,
- Mustache_Tokenizer::NAME => 'c',
- Mustache_Tokenizer::OTAG => '<%',
- Mustache_Tokenizer::CTAG => '%>',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 26,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => '}}}',
- ),
- ),
- ),
-
- // unescaped custom delimiters are properly parsed
- array(
- '<%{ a }%>',
- '<% %>',
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_UNESCAPED,
- Mustache_Tokenizer::NAME => 'a',
- Mustache_Tokenizer::OTAG => '<%',
- Mustache_Tokenizer::CTAG => '%>',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 9,
- ),
- ),
- ),
-
- // Ensure that $arg token is not picked up during tokenization
- array(
- '{{$arg}}default{{/arg}}',
- null,
- array(
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_BLOCK_VAR,
- Mustache_Tokenizer::NAME => 'arg',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 8,
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_TEXT,
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::VALUE => 'default',
- ),
- array(
- Mustache_Tokenizer::TYPE => Mustache_Tokenizer::T_END_SECTION,
- Mustache_Tokenizer::NAME => 'arg',
- Mustache_Tokenizer::OTAG => '{{',
- Mustache_Tokenizer::CTAG => '}}',
- Mustache_Tokenizer::LINE => 0,
- Mustache_Tokenizer::INDEX => 15,
- ),
- ),
- ),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/bootstrap.php b/vendor/mustache/mustache/test/bootstrap.php
deleted file mode 100644
index 21fc689..0000000
--- a/vendor/mustache/mustache/test/bootstrap.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-require dirname(__FILE__) . '/../src/Mustache/Autoloader.php';
-Mustache_Autoloader::register();
-Mustache_Autoloader::register(dirname(__FILE__) . '/../test');
-
-require dirname(__FILE__) . '/../vendor/yaml/lib/sfYamlParser.php';
-
-/**
- * Minimal stream wrapper to test protocol-based access to templates.
- */
-class TestStream
-{
- private $filehandle;
-
- /**
- * Always returns false.
- *
- * @param string $path
- * @param int $flags
- *
- * @return array
- */
- public function url_stat($path, $flags)
- {
- return false;
- }
-
- /**
- * Open the file.
- *
- * @param string $path
- * @param string $mode
- *
- * @return bool
- */
- public function stream_open($path, $mode)
- {
- $path = preg_replace('-^test://-', '', $path);
- $this->filehandle = fopen($path, $mode);
-
- return $this->filehandle !== false;
- }
-
- /**
- * @return array
- */
- public function stream_stat()
- {
- return array();
- }
-
- /**
- * @param int $count
- *
- * @return string
- */
- public function stream_read($count)
- {
- return fgets($this->filehandle, $count);
- }
-
- /**
- * @return bool
- */
- public function stream_eof()
- {
- return feof($this->filehandle);
- }
-
- /**
- * @return bool
- */
- public function stream_close()
- {
- return fclose($this->filehandle);
- }
-}
-
-if (!stream_wrapper_register('test', 'TestStream')) {
- die('Failed to register protocol');
-}
diff --git a/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Bar.php b/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Bar.php
deleted file mode 100644
index 8092722..0000000
--- a/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Bar.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Bar
-{
- // nada
-}
diff --git a/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Foo.php b/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Foo.php
deleted file mode 100644
index 7e6ef3a..0000000
--- a/vendor/mustache/mustache/test/fixtures/autoloader/Mustache/Foo.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Mustache_Foo
-{
- // nada
-}
diff --git a/vendor/mustache/mustache/test/fixtures/autoloader/NonMustacheClass.php b/vendor/mustache/mustache/test/fixtures/autoloader/NonMustacheClass.php
deleted file mode 100644
index d8d5929..0000000
--- a/vendor/mustache/mustache/test/fixtures/autoloader/NonMustacheClass.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class NonMustacheClass
-{
- // noop
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/blocks/Blocks.php b/vendor/mustache/mustache/test/fixtures/examples/blocks/Blocks.php
deleted file mode 100644
index 2a7cb20..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/blocks/Blocks.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Blocks
-{
- public $items = array(1, 2, 3);
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.mustache b/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.mustache
deleted file mode 100644
index a9fff39..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-{{% BLOCKS }}
-{{< parent }}
-{{$ value }}[{{ . }}]{{/ value }}
-{{/ parent }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.txt b/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.txt
deleted file mode 100644
index 2749019..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/blocks/blocks.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-[1]
-[2]
-[3]
diff --git a/vendor/mustache/mustache/test/fixtures/examples/blocks/partials/parent.mustache b/vendor/mustache/mustache/test/fixtures/examples/blocks/partials/parent.mustache
deleted file mode 100644
index cbb30f0..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/blocks/partials/parent.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-{{% BLOCKS }}
-{{# items }}
-{{$ value }}ignored{{/ value }}
-{{/ items }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/child_context/ChildContext.php b/vendor/mustache/mustache/test/fixtures/examples/child_context/ChildContext.php
deleted file mode 100644
index 9ef84ae..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/child_context/ChildContext.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class ChildContext
-{
- public $parent = array(
- 'child' => 'child works',
- );
-
- public $grandparent = array(
- 'parent' => array(
- 'child' => 'grandchild works',
- ),
- );
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.mustache b/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.mustache
deleted file mode 100644
index e1f2ebc..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.mustache
+++ /dev/null
@@ -1,2 +0,0 @@
-<h1>{{#parent}}{{child}}{{/parent}}</h1>
-<h2>{{#grandparent}}{{#parent}}{{child}}{{/parent}}{{/grandparent}}</h2> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.txt b/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.txt
deleted file mode 100644
index cfb76bf..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/child_context/child_context.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-<h1>child works</h1>
-<h2>grandchild works</h2> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/comments/Comments.php b/vendor/mustache/mustache/test/fixtures/examples/comments/Comments.php
deleted file mode 100644
index 690d139..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/comments/Comments.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Comments
-{
- public function title()
- {
- return 'A Comedy of Errors';
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/comments/comments.mustache b/vendor/mustache/mustache/test/fixtures/examples/comments/comments.mustache
deleted file mode 100644
index 846e449..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/comments/comments.mustache
+++ /dev/null
@@ -1 +0,0 @@
-<h1>{{title}}{{! just something interesting... #or ^not... }}</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/comments/comments.txt b/vendor/mustache/mustache/test/fixtures/examples/comments/comments.txt
deleted file mode 100644
index 9f40e77..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/comments/comments.txt
+++ /dev/null
@@ -1 +0,0 @@
-<h1>A Comedy of Errors</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.mustache b/vendor/mustache/mustache/test/fixtures/examples/complex/complex.mustache
deleted file mode 100644
index 807c201..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.mustache
+++ /dev/null
@@ -1,16 +0,0 @@
-<h1>{{header}}</h1>
-{{#notEmpty}}
-<ul>
-{{#item}}
-{{#current}}
- <li><strong>{{name}}</strong></li>
-{{/current}}
-{{^current}}
- <li><a href="{{url}}">{{name}}</a></li>
-{{/current}}
-{{/item}}
-</ul>
-{{/notEmpty}}
-{{#isEmpty}}
-<p>The list is empty.</p>
-{{/isEmpty}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.php b/vendor/mustache/mustache/test/fixtures/examples/complex/complex.php
deleted file mode 100644
index ebb2733..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Complex
-{
- public $header = 'Colors';
-
- public $item = array(
- array('name' => 'red', 'current' => true, 'url' => '#Red'),
- array('name' => 'green', 'current' => false, 'url' => '#Green'),
- array('name' => 'blue', 'current' => false, 'url' => '#Blue'),
- );
-
- public function notEmpty()
- {
- return !($this->isEmpty());
- }
-
- public function isEmpty()
- {
- return count($this->item) === 0;
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.txt b/vendor/mustache/mustache/test/fixtures/examples/complex/complex.txt
deleted file mode 100644
index facee6d..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/complex/complex.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Colors</h1>
-<ul>
- <li><strong>red</strong></li>
- <li><a href="#Green">green</a></li>
- <li><a href="#Blue">blue</a></li>
-</ul>
diff --git a/vendor/mustache/mustache/test/fixtures/examples/delimiters/Delimiters.php b/vendor/mustache/mustache/test/fixtures/examples/delimiters/Delimiters.php
deleted file mode 100644
index e3b044d..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/delimiters/Delimiters.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Delimiters
-{
- public $start = 'It worked the first time.';
-
- public function middle()
- {
- return array(
- array('item' => 'And it worked the second time.'),
- array('item' => 'As well as the third.'),
- );
- }
-
- public $final = 'Then, surprisingly, it worked the final time.';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.mustache b/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.mustache
deleted file mode 100644
index e9b0332..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.mustache
+++ /dev/null
@@ -1,8 +0,0 @@
-{{=<% %>=}}
-* <% start %>
-<%=| |=%>
-|# middle |
-* | item |
-|/ middle |
-|={{ }}=|
-* {{ final }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.txt b/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.txt
deleted file mode 100644
index e6b2d7a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/delimiters/delimiters.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* It worked the first time.
-* And it worked the second time.
-* As well as the third.
-* Then, surprisingly, it worked the final time. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/DotNotation.php b/vendor/mustache/mustache/test/fixtures/examples/dot_notation/DotNotation.php
deleted file mode 100644
index d400318..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/DotNotation.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class DotNotation
-{
- public $person = array(
- 'name' => array('first' => 'Chris', 'last' => 'Firescythe'),
- 'age' => 24,
- 'hometown' => array(
- 'city' => 'Cincinnati',
- 'state' => 'OH',
- ),
- );
-
- public $normal = 'Normal';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.mustache b/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.mustache
deleted file mode 100644
index 0566867..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-* {{person.name.first}} {{person.name.last}}
-* {{person.age}}
-* {{person.hometown.city}}, {{person.hometown.state}}
-* {{normal}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.txt b/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.txt
deleted file mode 100644
index f8cf1fa..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/dot_notation/dot_notation.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* Chris Firescythe
-* 24
-* Cincinnati, OH
-* Normal \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/double_section/DoubleSection.php b/vendor/mustache/mustache/test/fixtures/examples/double_section/DoubleSection.php
deleted file mode 100644
index 6989d95..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/double_section/DoubleSection.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class DoubleSection
-{
- public function t()
- {
- return true;
- }
-
- public $two = 'second';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.mustache b/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.mustache
deleted file mode 100644
index c831645..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-{{#t}}
-* first
-{{/t}}
-* {{two}}
-{{#t}}
-* third
-{{/t}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.txt b/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.txt
deleted file mode 100644
index 5433688..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/double_section/double_section.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-* first
-* second
-* third
diff --git a/vendor/mustache/mustache/test/fixtures/examples/escaped/Escaped.php b/vendor/mustache/mustache/test/fixtures/examples/escaped/Escaped.php
deleted file mode 100644
index 2e5805b..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/escaped/Escaped.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Escaped
-{
- public $title = '"Bear" > "Shark"';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.mustache b/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.mustache
deleted file mode 100644
index 8be4ccb..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.mustache
+++ /dev/null
@@ -1 +0,0 @@
-<h1>{{title}}</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.txt b/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.txt
deleted file mode 100644
index 6ba3657..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/escaped/escaped.txt
+++ /dev/null
@@ -1 +0,0 @@
-<h1>&quot;Bear&quot; &gt; &quot;Shark&quot;</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/filters/Filters.php b/vendor/mustache/mustache/test/fixtures/examples/filters/Filters.php
deleted file mode 100644
index fb7c3f5..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/filters/Filters.php
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Filters
-{
- public $states = array(
- 'al' => 'Alabama',
- 'ak' => 'Alaska',
- 'az' => 'Arizona',
- 'ar' => 'Arkansas',
- 'ca' => 'California',
- 'co' => 'Colorado',
- 'ct' => 'Connecticut',
- 'de' => 'Delaware',
- 'fl' => 'Florida',
- 'ga' => 'Georgia',
- 'hi' => 'Hawaii',
- 'id' => 'Idaho',
- 'il' => 'Illinois',
- 'in' => 'Indiana',
- 'ia' => 'Iowa',
- 'ks' => 'Kansas',
- 'ky' => 'Kentucky',
- 'la' => 'Louisiana',
- 'me' => 'Maine',
- 'md' => 'Maryland',
- 'ma' => 'Massachusetts',
- 'mi' => 'Michigan',
- 'mn' => 'Minnesota',
- 'ms' => 'Mississippi',
- 'mo' => 'Missouri',
- 'mt' => 'Montana',
- 'ne' => 'Nebraska',
- 'nv' => 'Nevada',
- 'nh' => 'New Hampshire',
- 'nj' => 'New Jersey',
- 'nm' => 'New Mexico',
- 'ny' => 'New York',
- 'nc' => 'North Carolina',
- 'nd' => 'North Dakota',
- 'oh' => 'Ohio',
- 'ok' => 'Oklahoma',
- 'or' => 'Oregon',
- 'pa' => 'Pennsylvania',
- 'ri' => 'Rhode Island',
- 'sc' => 'South Carolina',
- 'sd' => 'South Dakota',
- 'tn' => 'Tennessee',
- 'tx' => 'Texas',
- 'ut' => 'Utah',
- 'vt' => 'Vermont',
- 'va' => 'Virginia',
- 'wa' => 'Washington',
- 'wv' => 'West Virginia',
- 'wi' => 'Wisconsin',
- 'wy' => 'Wyoming',
- );
-
- // The next few functions are ugly, because they have to work in PHP 5.2...
- // for everyone who doesn't have to support 5.2, please, for the love, make
- // your ViewModel return closures rather than `array($this, '...')`
- //
- // :)
-
- public function upcase()
- {
- return array($this, '_upcase');
- }
-
- public function _upcase($val)
- {
- return strtoupper($val);
- }
-
- public function eachPair()
- {
- return array($this, '_eachPair');
- }
-
- public function _eachPair($val)
- {
- $ret = array();
- foreach ($val as $key => $value) {
- array_push($ret, compact('key', 'value'));
- }
-
- return $ret;
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/filters/filters.mustache b/vendor/mustache/mustache/test/fixtures/examples/filters/filters.mustache
deleted file mode 100644
index 50f1465..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/filters/filters.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-{{%FILTERS}}
-{{# states | eachPair }}
-{{ key | upcase }}: {{ value }}
-{{/ states }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/filters/filters.txt b/vendor/mustache/mustache/test/fixtures/examples/filters/filters.txt
deleted file mode 100644
index 67466fd..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/filters/filters.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-AL: Alabama
-AK: Alaska
-AZ: Arizona
-AR: Arkansas
-CA: California
-CO: Colorado
-CT: Connecticut
-DE: Delaware
-FL: Florida
-GA: Georgia
-HI: Hawaii
-ID: Idaho
-IL: Illinois
-IN: Indiana
-IA: Iowa
-KS: Kansas
-KY: Kentucky
-LA: Louisiana
-ME: Maine
-MD: Maryland
-MA: Massachusetts
-MI: Michigan
-MN: Minnesota
-MS: Mississippi
-MO: Missouri
-MT: Montana
-NE: Nebraska
-NV: Nevada
-NH: New Hampshire
-NJ: New Jersey
-NM: New Mexico
-NY: New York
-NC: North Carolina
-ND: North Dakota
-OH: Ohio
-OK: Oklahoma
-OR: Oregon
-PA: Pennsylvania
-RI: Rhode Island
-SC: South Carolina
-SD: South Dakota
-TN: Tennessee
-TX: Texas
-UT: Utah
-VT: Vermont
-VA: Virginia
-WA: Washington
-WV: West Virginia
-WI: Wisconsin
-WY: Wyoming
diff --git a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/GrandParentContext.php b/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/GrandParentContext.php
deleted file mode 100644
index e3ea25f..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/GrandParentContext.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class GrandParentContext
-{
- public $grand_parent_id = 'grand_parent1';
- public $parent_contexts = array();
-
- public function __construct()
- {
- $this->parent_contexts[] = array('parent_id' => 'parent1', 'child_contexts' => array(
- array('child_id' => 'parent1-child1'),
- array('child_id' => 'parent1-child2'),
- ));
-
- $parent2 = new stdClass();
- $parent2->parent_id = 'parent2';
- $parent2->child_contexts = array(
- array('child_id' => 'parent2-child1'),
- array('child_id' => 'parent2-child2'),
- );
-
- $this->parent_contexts[] = $parent2;
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.mustache b/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.mustache
deleted file mode 100644
index 6d03ddf..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-{{grand_parent_id}}
-{{#parent_contexts}}
- {{parent_id}} ({{grand_parent_id}})
- {{#child_contexts}}
- {{child_id}} ({{parent_id}} << {{grand_parent_id}})
- {{/child_contexts}}
-{{/parent_contexts}}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.txt b/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.txt
deleted file mode 100644
index 2687f84..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/grand_parent_context/grand_parent_context.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-grand_parent1
- parent1 (grand_parent1)
- parent1-child1 (parent1 << grand_parent1)
- parent1-child2 (parent1 << grand_parent1)
- parent2 (grand_parent1)
- parent2-child1 (parent2 << grand_parent1)
- parent2-child2 (parent2 << grand_parent1)
diff --git a/vendor/mustache/mustache/test/fixtures/examples/i18n/I18n.php b/vendor/mustache/mustache/test/fixtures/examples/i18n/I18n.php
deleted file mode 100644
index 77dc7b2..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/i18n/I18n.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class I18n
-{
- // Variable to be interpolated
- public $name = 'Bob';
-
- // Add a {{#__}} lambda for i18n
- public $__ = array(__CLASS__, '__trans');
-
- // A *very* small i18n dictionary :)
- private static $dictionary = array(
- 'Hello.' => 'Hola.',
- 'My name is {{ name }}.' => 'Me llamo {{ name }}.',
- );
-
- public static function __trans($text)
- {
- return isset(self::$dictionary[$text]) ? self::$dictionary[$text] : $text;
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.mustache b/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.mustache
deleted file mode 100644
index eef169b..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.mustache
+++ /dev/null
@@ -1 +0,0 @@
-{{#__}}Hello.{{/__}} {{#__}}My name is {{ name }}.{{/__}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.txt b/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.txt
deleted file mode 100644
index 650a71a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/i18n/i18n.txt
+++ /dev/null
@@ -1 +0,0 @@
-Hola. Me llamo Bob. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/ImplicitIterator.php b/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/ImplicitIterator.php
deleted file mode 100644
index 6a26477..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/ImplicitIterator.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class ImplicitIterator
-{
- public $data = array('Donkey Kong', 'Luigi', 'Mario', 'Peach', 'Yoshi');
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.mustache b/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.mustache
deleted file mode 100644
index b8d58ff..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-{{#data}}
-* {{.}}
-{{/data}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.txt b/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.txt
deleted file mode 100644
index bd7e945..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/implicit_iterator/implicit_iterator.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-* Donkey Kong
-* Luigi
-* Mario
-* Peach
-* Yoshi
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php b/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php
deleted file mode 100644
index 7946640..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/InvertedDoubleSection.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class InvertedDoubleSection
-{
- public $t = false;
- public $two = 'second';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.mustache b/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.mustache
deleted file mode 100644
index acc3ae0..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-{{^t}}
-* first
-{{/t}}
-* {{two}}
-{{^t}}
-* third
-{{/t}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.txt b/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.txt
deleted file mode 100644
index 5433688..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_double_section/inverted_double_section.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-* first
-* second
-* third
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/InvertedSection.php b/vendor/mustache/mustache/test/fixtures/examples/inverted_section/InvertedSection.php
deleted file mode 100644
index a4ab8d5..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/InvertedSection.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class InvertedSection
-{
- public $repo = array();
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.mustache b/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.mustache
deleted file mode 100644
index 431073d..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-{{#repo}}
- <b>{{name}}</b>
-{{/repo}}
-{{^repo}}
- No repos :(
-{{/repo}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.txt b/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.txt
deleted file mode 100644
index 6ba5a99..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/inverted_section/inverted_section.txt
+++ /dev/null
@@ -1 +0,0 @@
- No repos :(
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/NestedPartials.php b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/NestedPartials.php
deleted file mode 100644
index 1a5afd3..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/NestedPartials.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class NestedPartials
-{
- public $val = 'FOURTH!';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.mustache b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.mustache
deleted file mode 100644
index 7b80dc3..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-<first>
- {{> second }}
-</first> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.txt b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.txt
deleted file mode 100644
index 62776f9..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/nested_partials.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-<first>
- <second>
- <third>
- FOURTH!
- </third>
- </second>
-</first> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/fourth.mustache b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/fourth.mustache
deleted file mode 100644
index 727676f..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/fourth.mustache
+++ /dev/null
@@ -1 +0,0 @@
-{{ val }}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/second.mustache b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/second.mustache
deleted file mode 100644
index 83f33cf..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/second.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-<second>
- {{> third }}
-</second>
diff --git a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/third.mustache b/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/third.mustache
deleted file mode 100644
index f33301a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/nested_partials/partials/third.mustache
+++ /dev/null
@@ -1,3 +0,0 @@
-<third>
- {{> fourth }}
-</third>
diff --git a/vendor/mustache/mustache/test/fixtures/examples/partials/Partials.php b/vendor/mustache/mustache/test/fixtures/examples/partials/Partials.php
deleted file mode 100644
index 1bdaaa1..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/partials/Partials.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Partials
-{
- public $page = array(
- 'title' => 'Page Title',
- 'subtitle' => 'Page Subtitle',
- 'content' => 'Lorem ipsum dolor sit amet.',
- );
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/partials/partials.mustache b/vendor/mustache/mustache/test/fixtures/examples/partials/partials.mustache
deleted file mode 100644
index 54cf1c5..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/partials/partials.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-<div>
- {{> header }}
-
- <div>
- {{ page.content }}
- </div>
-</div> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/partials/partials.txt b/vendor/mustache/mustache/test/fixtures/examples/partials/partials.txt
deleted file mode 100644
index f8e45ce..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/partials/partials.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-<div>
- <h1>Page Title</h1>
- <h2>Page Subtitle</h2>
-
- <div>
- Lorem ipsum dolor sit amet.
- </div>
-</div> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/partials/partials/header.mustache b/vendor/mustache/mustache/test/fixtures/examples/partials/partials/header.mustache
deleted file mode 100644
index 88d567b..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/partials/partials/header.mustache
+++ /dev/null
@@ -1,4 +0,0 @@
-{{# page }}
-<h1>{{ title }}</h1>
-<h2>{{ subtitle }}</h2>
-{{/ page }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/RecursivePartials.php b/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/RecursivePartials.php
deleted file mode 100644
index 25d15fd..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/RecursivePartials.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class RecursivePartials
-{
- public $name = 'George';
- public $child = array(
- 'name' => 'Dan',
- 'child' => array(
- 'name' => 'Justin',
- 'child' => false,
- ),
- );
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/partials/child.mustache b/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/partials/child.mustache
deleted file mode 100644
index 1282941..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/partials/child.mustache
+++ /dev/null
@@ -1 +0,0 @@
- > {{ name }}{{#child}}{{>child}}{{/child}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.mustache b/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.mustache
deleted file mode 100644
index 0bc5d03..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.mustache
+++ /dev/null
@@ -1 +0,0 @@
-{{name}}{{#child}}{{>child}}{{/child}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.txt b/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.txt
deleted file mode 100644
index 681cdef..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/recursive_partials/recursive_partials.txt
+++ /dev/null
@@ -1 +0,0 @@
-George > Dan > Justin \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php b/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php
deleted file mode 100644
index 77e083e..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/SectionIteratorObjects.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class SectionIteratorObjects
-{
- public $start = 'It worked the first time.';
-
- protected $_data = array(
- array('item' => 'And it worked the second time.'),
- array('item' => 'As well as the third.'),
- );
-
- public function middle()
- {
- return new ArrayIterator($this->_data);
- }
-
- public $final = 'Then, surprisingly, it worked the final time.';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache b/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache
deleted file mode 100644
index 44dfce4..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.mustache
+++ /dev/null
@@ -1,5 +0,0 @@
-* {{ start }}
-{{# middle }}
-* {{ item }}
-{{/ middle }}
-* {{ final }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt b/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt
deleted file mode 100644
index e6b2d7a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_iterator_objects/section_iterator_objects.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* It worked the first time.
-* And it worked the second time.
-* As well as the third.
-* Then, surprisingly, it worked the final time. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/SectionMagicObjects.php b/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/SectionMagicObjects.php
deleted file mode 100644
index 54288d6..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/SectionMagicObjects.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class SectionMagicObjects
-{
- public $start = 'It worked the first time.';
-
- public function middle()
- {
- return new MagicObject();
- }
-
- public $final = 'Then, surprisingly, it worked the final time.';
-}
-
-class MagicObject
-{
- protected $_data = array(
- 'foo' => 'And it worked the second time.',
- 'bar' => 'As well as the third.',
- );
-
- public function __get($key)
- {
- return isset($this->_data[$key]) ? $this->_data[$key] : null;
- }
-
- public function __isset($key)
- {
- return isset($this->_data[$key]);
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.mustache b/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.mustache
deleted file mode 100644
index 9119608..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-* {{ start }}
-{{# middle }}
-* {{ foo }}
-* {{ bar }}
-{{/ middle }}
-* {{ final }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.txt b/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.txt
deleted file mode 100644
index e6b2d7a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_magic_objects/section_magic_objects.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* It worked the first time.
-* And it worked the second time.
-* As well as the third.
-* Then, surprisingly, it worked the final time. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_objects/SectionObjects.php b/vendor/mustache/mustache/test/fixtures/examples/section_objects/SectionObjects.php
deleted file mode 100644
index b977ec5..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_objects/SectionObjects.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class SectionObjects
-{
- public $start = 'It worked the first time.';
-
- public function middle()
- {
- return new SectionObject();
- }
-
- public $final = 'Then, surprisingly, it worked the final time.';
-}
-
-class SectionObject
-{
- public $foo = 'And it worked the second time.';
- public $bar = 'As well as the third.';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.mustache b/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.mustache
deleted file mode 100644
index 9119608..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.mustache
+++ /dev/null
@@ -1,6 +0,0 @@
-* {{ start }}
-{{# middle }}
-* {{ foo }}
-* {{ bar }}
-{{/ middle }}
-* {{ final }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.txt b/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.txt
deleted file mode 100644
index e6b2d7a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/section_objects/section_objects.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* It worked the first time.
-* And it worked the second time.
-* As well as the third.
-* Then, surprisingly, it worked the final time. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections/Sections.php b/vendor/mustache/mustache/test/fixtures/examples/sections/Sections.php
deleted file mode 100644
index 86bc893..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections/Sections.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Sections
-{
- public $start = 'It worked the first time.';
-
- public function middle()
- {
- return array(
- array('item' => 'And it worked the second time.'),
- array('item' => 'As well as the third.'),
- );
- }
-
- public $final = 'Then, surprisingly, it worked the final time.';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections/sections.mustache b/vendor/mustache/mustache/test/fixtures/examples/sections/sections.mustache
deleted file mode 100644
index 44dfce4..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections/sections.mustache
+++ /dev/null
@@ -1,5 +0,0 @@
-* {{ start }}
-{{# middle }}
-* {{ item }}
-{{/ middle }}
-* {{ final }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections/sections.txt b/vendor/mustache/mustache/test/fixtures/examples/sections/sections.txt
deleted file mode 100644
index e6b2d7a..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections/sections.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-* It worked the first time.
-* And it worked the second time.
-* As well as the third.
-* Then, surprisingly, it worked the final time. \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/SectionsNested.php b/vendor/mustache/mustache/test/fixtures/examples/sections_nested/SectionsNested.php
deleted file mode 100644
index dccc0d9..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/SectionsNested.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class SectionsNested
-{
- public $name = 'Little Mac';
-
- public function enemies()
- {
- return array(
- array(
- 'name' => 'Von Kaiser',
- 'enemies' => array(
- array('name' => 'Super Macho Man'),
- array('name' => 'Piston Honda'),
- array('name' => 'Mr. Sandman'),
- ),
- ),
- array(
- 'name' => 'Mike Tyson',
- 'enemies' => array(
- array('name' => 'Soda Popinski'),
- array('name' => 'King Hippo'),
- array('name' => 'Great Tiger'),
- array('name' => 'Glass Joe'),
- ),
- ),
- array(
- 'name' => 'Don Flamenco',
- 'enemies' => array(
- array('name' => 'Bald Bull'),
- ),
- ),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.mustache b/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.mustache
deleted file mode 100644
index 9f8007d..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.mustache
+++ /dev/null
@@ -1,7 +0,0 @@
-Enemies of {{ name }}:
-{{# enemies }}
-{{ name }} ... who also has enemies:
-{{# enemies }}
---> {{ name }}
-{{/ enemies }}
-{{/ enemies }} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.txt b/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.txt
deleted file mode 100644
index 72c44d0..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/sections_nested/sections_nested.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Enemies of Little Mac:
-Von Kaiser ... who also has enemies:
---> Super Macho Man
---> Piston Honda
---> Mr. Sandman
-Mike Tyson ... who also has enemies:
---> Soda Popinski
---> King Hippo
---> Great Tiger
---> Glass Joe
-Don Flamenco ... who also has enemies:
---> Bald Bull
diff --git a/vendor/mustache/mustache/test/fixtures/examples/simple/Simple.php b/vendor/mustache/mustache/test/fixtures/examples/simple/Simple.php
deleted file mode 100644
index 570af22..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/simple/Simple.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Simple
-{
- public $name = 'Chris';
- public $value = 10000;
-
- public function taxed_value()
- {
- return $this->value - ($this->value * 0.4);
- }
-
- public $in_ca = true;
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/simple/simple.mustache b/vendor/mustache/mustache/test/fixtures/examples/simple/simple.mustache
deleted file mode 100644
index 03df206..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/simple/simple.mustache
+++ /dev/null
@@ -1,5 +0,0 @@
-Hello {{name}}
-You have just won ${{value}}!
-{{#in_ca}}
-Well, ${{ taxed_value }}, after taxes.
-{{/in_ca}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/simple/simple.txt b/vendor/mustache/mustache/test/fixtures/examples/simple/simple.txt
deleted file mode 100644
index 5d75d65..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/simple/simple.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Hello Chris
-You have just won $10000!
-Well, $6000, after taxes.
diff --git a/vendor/mustache/mustache/test/fixtures/examples/unescaped/Unescaped.php b/vendor/mustache/mustache/test/fixtures/examples/unescaped/Unescaped.php
deleted file mode 100644
index abe9178..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/unescaped/Unescaped.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class Unescaped
-{
- public $title = 'Bear > Shark';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.mustache b/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.mustache
deleted file mode 100644
index 9982708..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.mustache
+++ /dev/null
@@ -1 +0,0 @@
-<h1>{{{title}}}</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.txt b/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.txt
deleted file mode 100644
index 01fa404..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/unescaped/unescaped.txt
+++ /dev/null
@@ -1 +0,0 @@
-<h1>Bear > Shark</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8/UTF8.php b/vendor/mustache/mustache/test/fixtures/examples/utf8/UTF8.php
deleted file mode 100644
index 8c14941..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8/UTF8.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class UTF8
-{
- public $test = '中文又来啦';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.mustache b/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.mustache
deleted file mode 100644
index 6954d47..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.mustache
+++ /dev/null
@@ -1 +0,0 @@
-<h1>中文 {{test}}</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.txt b/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.txt
deleted file mode 100644
index bf17971..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8/utf8.txt
+++ /dev/null
@@ -1 +0,0 @@
-<h1>中文 中文又来啦</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php b/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php
deleted file mode 100644
index 4309675..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/UTF8Unescaped.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-class UTF8Unescaped
-{
- public $test = '中文又来啦';
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache b/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache
deleted file mode 100644
index fd7fe4b..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.mustache
+++ /dev/null
@@ -1 +0,0 @@
-<h1>中文 {{{test}}}</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt b/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt
deleted file mode 100644
index bf17971..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/utf8_unescaped/utf8_unescaped.txt
+++ /dev/null
@@ -1 +0,0 @@
-<h1>中文 中文又来啦</h1> \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/whitespace/Whitespace.php b/vendor/mustache/mustache/test/fixtures/examples/whitespace/Whitespace.php
deleted file mode 100644
index d5a5c62..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/whitespace/Whitespace.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/*
- * This file is part of Mustache.php.
- *
- * (c) 2010-2016 Justin Hileman
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * Whitespace test for tag names.
- *
- * Per http://github.com/janl/mustache.js/issues/issue/34/#comment_244396
- * tags should strip leading and trailing whitespace in key names.
- *
- * `{{> tag }}` and `{{> tag}}` and `{{>tag}}` should all be equivalent.
- */
-class Whitespace
-{
- public $foo = 'alpha';
-
- public $bar = 'beta';
-
- public function baz()
- {
- return 'gamma';
- }
-
- public function qux()
- {
- return array(
- array('key with space' => 'A'),
- array('key with space' => 'B'),
- array('key with space' => 'C'),
- array('key with space' => 'D'),
- array('key with space' => 'E'),
- array('key with space' => 'F'),
- array('key with space' => 'G'),
- );
- }
-}
diff --git a/vendor/mustache/mustache/test/fixtures/examples/whitespace/partials/alphabet.mustache b/vendor/mustache/mustache/test/fixtures/examples/whitespace/partials/alphabet.mustache
deleted file mode 100644
index d281c41..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/whitespace/partials/alphabet.mustache
+++ /dev/null
@@ -1 +0,0 @@
- * {{.}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.mustache b/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.mustache
deleted file mode 100644
index 0b3ba00..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.mustache
+++ /dev/null
@@ -1,10 +0,0 @@
-{{^ inverted section test }}
-These are some things:
-{{/inverted section test }}
-* {{ foo }}
-* {{ bar}}
-* {{ baz }}
-{{# qux }}
-* {{ key with space }}
-{{/ qux }}
-{{#qux}}.{{/qux}} \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.txt b/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.txt
deleted file mode 100644
index 5226c69..0000000
--- a/vendor/mustache/mustache/test/fixtures/examples/whitespace/whitespace.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-These are some things:
-* alpha
-* beta
-* gamma
-* A
-* B
-* C
-* D
-* E
-* F
-* G
-....... \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/templates/alpha.ms b/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
deleted file mode 100644
index 3845830..0000000
--- a/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
+++ /dev/null
@@ -1 +0,0 @@
-alpha contents \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/templates/beta.ms b/vendor/mustache/mustache/test/fixtures/templates/beta.ms
deleted file mode 100644
index a083dfe..0000000
--- a/vendor/mustache/mustache/test/fixtures/templates/beta.ms
+++ /dev/null
@@ -1 +0,0 @@
-beta contents \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/templates/one.mustache b/vendor/mustache/mustache/test/fixtures/templates/one.mustache
deleted file mode 100644
index f83ad09..0000000
--- a/vendor/mustache/mustache/test/fixtures/templates/one.mustache
+++ /dev/null
@@ -1 +0,0 @@
-one contents \ No newline at end of file
diff --git a/vendor/mustache/mustache/test/fixtures/templates/two.mustache b/vendor/mustache/mustache/test/fixtures/templates/two.mustache
deleted file mode 100644
index dacc40e..0000000
--- a/vendor/mustache/mustache/test/fixtures/templates/two.mustache
+++ /dev/null
@@ -1 +0,0 @@
-two contents \ No newline at end of file