From 06ee1f224a720ca16bc78e927c00d8ff7a67746f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 11 Jul 2010 22:54:57 -0400 Subject: [PATCH] Fixed implicit iterator + dot notation tests, this feature is now ready to merge :) --- README.markdown | 2 -- test/MustachePragmaImplicitIteratorTest.php | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.markdown b/README.markdown index 3123c6d..ab27846 100644 --- a/README.markdown +++ b/README.markdown @@ -83,8 +83,6 @@ Known Issues * Sections don't respect delimiter changes -- `delimiters` example currently fails with an "unclosed section" exception. - * Dot notation and implicit iterators don't really play nice. A non-traversible local context is - passed to the section. * Test coverage is incomplete. diff --git a/test/MustachePragmaImplicitIteratorTest.php b/test/MustachePragmaImplicitIteratorTest.php index f8217ee..bf39091 100644 --- a/test/MustachePragmaImplicitIteratorTest.php +++ b/test/MustachePragmaImplicitIteratorTest.php @@ -44,12 +44,8 @@ class MustachePragmaImplicitIteratorTest extends PHPUnit_Framework_TestCase { ))); $this->assertEquals('foobarbaz', $m->render('{{%IMPLICIT-ITERATOR}}{{#items}}{{#.}}{{name}}{{/.}}{{/items}}')); - - // skip the last two tests here, they just break... - $this->markTestSkipped('Implicit iterator not completely compatible with dot notation'); - - $this->assertEquals('123', $m->render('{{%IMPLICIT-ITERATOR iterator=i}}{{#items}}{{i.index}}{{/items}}')); - $this->assertEquals('foobarbaz', $m->render('{{%IMPLICIT-ITERATOR iterator=i}}{{#items}}{{i.name}}{{/items}}')); + $this->assertEquals('123', $m->render('{{%IMPLICIT-ITERATOR iterator=i}}{{%DOT-NOTATION}}{{#items}}{{i.index}}{{/items}}')); + $this->assertEquals('foobarbaz', $m->render('{{%IMPLICIT-ITERATOR iterator=i}}{{%DOT-NOTATION}}{{#items}}{{i.name}}{{/items}}')); } } \ No newline at end of file