From 2cfb8aefc107c38293c822a1e2175561254e4cb8 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 6 Jul 2010 10:17:04 -0400 Subject: [PATCH] Rename section object tests to work with upcoming autoload-template feature. Clean up code to match style. --- .../SectionIteratorObject.php} | 7 +++---- .../section_iterator_object.mustache} | 0 .../section_iterator_object.txt} | 0 .../SectionMagicObject.php} | 13 +++++-------- .../section_magic_object.mustache} | 0 .../section_magic_object.txt} | 0 .../SectionObjects.php} | 7 +++---- .../section_objects.mustache} | 0 .../section_objects.txt} | 0 9 files changed, 11 insertions(+), 16 deletions(-) rename examples/{sections_iterator_object/Sections_Iterator_Object.php => section_iterator_objects/SectionIteratorObject.php} (83%) rename examples/{sections_iterator_object/sections.mustache => section_iterator_objects/section_iterator_object.mustache} (100%) rename examples/{sections_iterable_object/sections.txt => section_iterator_objects/section_iterator_object.txt} (100%) rename examples/{sections_noniterable_object/Sections_Noniterable_Object.php => section_magic_objects/SectionMagicObject.php} (67%) rename examples/{sections_iterable_object/sections.mustache => section_magic_objects/section_magic_object.mustache} (100%) rename examples/{sections_iterator_object/sections.txt => section_magic_objects/section_magic_object.txt} (100%) rename examples/{sections_iterable_object/Sections_Iterable_Object.php => section_objects/SectionObjects.php} (70%) rename examples/{sections_noniterable_object/sections.mustache => section_objects/section_objects.mustache} (100%) rename examples/{sections_noniterable_object/sections.txt => section_objects/section_objects.txt} (100%) diff --git a/examples/sections_iterator_object/Sections_Iterator_Object.php b/examples/section_iterator_objects/SectionIteratorObject.php similarity index 83% rename from examples/sections_iterator_object/Sections_Iterator_Object.php rename to examples/section_iterator_objects/SectionIteratorObject.php index e517fe0..5a592ab 100644 --- a/examples/sections_iterator_object/Sections_Iterator_Object.php +++ b/examples/section_iterator_objects/SectionIteratorObject.php @@ -1,17 +1,16 @@ 'And it worked the second time.', 'bar' => 'As well as the third.' ); - public function __get($key) - { + public function __get($key) { return isset($this->_data[$key]) ? $this->_data[$key] : NULL; } - public function __isset($key) - { + public function __isset($key) { return isset($this->_data[$key]); } } \ No newline at end of file diff --git a/examples/sections_iterable_object/sections.mustache b/examples/section_magic_objects/section_magic_object.mustache similarity index 100% rename from examples/sections_iterable_object/sections.mustache rename to examples/section_magic_objects/section_magic_object.mustache diff --git a/examples/sections_iterator_object/sections.txt b/examples/section_magic_objects/section_magic_object.txt similarity index 100% rename from examples/sections_iterator_object/sections.txt rename to examples/section_magic_objects/section_magic_object.txt diff --git a/examples/sections_iterable_object/Sections_Iterable_Object.php b/examples/section_objects/SectionObjects.php similarity index 70% rename from examples/sections_iterable_object/Sections_Iterable_Object.php rename to examples/section_objects/SectionObjects.php index ee2f661..41b7d84 100644 --- a/examples/sections_iterable_object/Sections_Iterable_Object.php +++ b/examples/section_objects/SectionObjects.php @@ -1,17 +1,16 @@