Update tests to reflect the expected *.html.php template and layout
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 26 Feb 2009 19:47:26 +0000 (14:47 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 26 Feb 2009 19:47:26 +0000 (14:47 -0500)
filenames.

21 files changed:
framework/View/test/Horde/View/BaseTest.php
framework/View/test/Horde/View/fixtures/_myPartial.html [deleted file]
framework/View/test/Horde/View/fixtures/_myPartial.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/_myPartialLocals.html [deleted file]
framework/View/test/Horde/View/fixtures/_myPartialLocals.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/_myPartialObject.html [deleted file]
framework/View/test/Horde/View/fixtures/_myPartialObject.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/subdir/testRender.html [deleted file]
framework/View/test/Horde/View/fixtures/subdir/testRender.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testEscape.html [deleted file]
framework/View/test/Horde/View/fixtures/testEscape.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testPartial.html [deleted file]
framework/View/test/Horde/View/fixtures/testPartial.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testPartialCollection.html [deleted file]
framework/View/test/Horde/View/fixtures/testPartialCollection.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testPartialLocals.html [deleted file]
framework/View/test/Horde/View/fixtures/testPartialLocals.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testPartialObject.html [deleted file]
framework/View/test/Horde/View/fixtures/testPartialObject.html.php [new file with mode: 0644]
framework/View/test/Horde/View/fixtures/testRender.html [deleted file]
framework/View/test/Horde/View/fixtures/testRender.html.php [new file with mode: 0644]

index 5d4f72a..9b175cb 100644 (file)
@@ -88,7 +88,7 @@ class Horde_View_BaseTest extends Horde_Test_Case
         $this->_view->myVar = 'test';
 
         $expected = "<div>test</div>";
-        $this->assertEquals($expected, $this->_view->render('testRender.html'));
+        $this->assertEquals($expected, $this->_view->render('testRender.html.php'));
     }
 
     // test rendering
diff --git a/framework/View/test/Horde/View/fixtures/_myPartial.html b/framework/View/test/Horde/View/fixtures/_myPartial.html
deleted file mode 100644 (file)
index f374d0e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<p><?= $this->myVar2 ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/_myPartial.html.php b/framework/View/test/Horde/View/fixtures/_myPartial.html.php
new file mode 100644 (file)
index 0000000..f374d0e
--- /dev/null
@@ -0,0 +1 @@
+<p><?= $this->myVar2 ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/_myPartialLocals.html b/framework/View/test/Horde/View/fixtures/_myPartialLocals.html
deleted file mode 100644 (file)
index 74607eb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<p><?= $a ?> <?= $b ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/_myPartialLocals.html.php b/framework/View/test/Horde/View/fixtures/_myPartialLocals.html.php
new file mode 100644 (file)
index 0000000..74607eb
--- /dev/null
@@ -0,0 +1 @@
+<p><?= $a ?> <?= $b ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/_myPartialObject.html b/framework/View/test/Horde/View/fixtures/_myPartialObject.html
deleted file mode 100644 (file)
index e2db662..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<p><?= $myPartialObject->string_value ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/_myPartialObject.html.php b/framework/View/test/Horde/View/fixtures/_myPartialObject.html.php
new file mode 100644 (file)
index 0000000..e2db662
--- /dev/null
@@ -0,0 +1 @@
+<p><?= $myPartialObject->string_value ?></p>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/subdir/testRender.html b/framework/View/test/Horde/View/fixtures/subdir/testRender.html
deleted file mode 100644 (file)
index 5ecca93..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div>subdir <?= $this->myVar ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/subdir/testRender.html.php b/framework/View/test/Horde/View/fixtures/subdir/testRender.html.php
new file mode 100644 (file)
index 0000000..5ecca93
--- /dev/null
@@ -0,0 +1 @@
+<div>subdir <?= $this->myVar ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testEscape.html b/framework/View/test/Horde/View/fixtures/testEscape.html
deleted file mode 100644 (file)
index f565419..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div>test <?= $this->h($this->myVar) ?> quotes</div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testEscape.html.php b/framework/View/test/Horde/View/fixtures/testEscape.html.php
new file mode 100644 (file)
index 0000000..f565419
--- /dev/null
@@ -0,0 +1 @@
+<div>test <?= $this->h($this->myVar) ?> quotes</div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartial.html b/framework/View/test/Horde/View/fixtures/testPartial.html
deleted file mode 100644 (file)
index bbf96b6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div><?= @$this->myVar1 ?><?= $this->renderPartial('myPartial') ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartial.html.php b/framework/View/test/Horde/View/fixtures/testPartial.html.php
new file mode 100644 (file)
index 0000000..bbf96b6
--- /dev/null
@@ -0,0 +1 @@
+<div><?= @$this->myVar1 ?><?= $this->renderPartial('myPartial') ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialCollection.html b/framework/View/test/Horde/View/fixtures/testPartialCollection.html
deleted file mode 100644 (file)
index cc3b3a4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div><?= $this->renderPartial('myPartialObject', array('collection' => $this->myObjects)) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialCollection.html.php b/framework/View/test/Horde/View/fixtures/testPartialCollection.html.php
new file mode 100644 (file)
index 0000000..cc3b3a4
--- /dev/null
@@ -0,0 +1 @@
+<div><?= $this->renderPartial('myPartialObject', array('collection' => $this->myObjects)) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialLocals.html b/framework/View/test/Horde/View/fixtures/testPartialLocals.html
deleted file mode 100644 (file)
index e6cc644..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div><?= $this->renderPartial('myPartialLocals', array('locals' => array('a' => 'hello', 'b' => 'world'))) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialLocals.html.php b/framework/View/test/Horde/View/fixtures/testPartialLocals.html.php
new file mode 100644 (file)
index 0000000..e6cc644
--- /dev/null
@@ -0,0 +1 @@
+<div><?= $this->renderPartial('myPartialLocals', array('locals' => array('a' => 'hello', 'b' => 'world'))) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialObject.html b/framework/View/test/Horde/View/fixtures/testPartialObject.html
deleted file mode 100644 (file)
index d61d7ec..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div><?= $this->renderPartial('myPartialObject', array('object' => $this->myObject)) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testPartialObject.html.php b/framework/View/test/Horde/View/fixtures/testPartialObject.html.php
new file mode 100644 (file)
index 0000000..d61d7ec
--- /dev/null
@@ -0,0 +1 @@
+<div><?= $this->renderPartial('myPartialObject', array('object' => $this->myObject)) ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testRender.html b/framework/View/test/Horde/View/fixtures/testRender.html
deleted file mode 100644 (file)
index b764885..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<div><?= $this->myVar ?></div>
\ No newline at end of file
diff --git a/framework/View/test/Horde/View/fixtures/testRender.html.php b/framework/View/test/Horde/View/fixtures/testRender.html.php
new file mode 100644 (file)
index 0000000..b764885
--- /dev/null
@@ -0,0 +1 @@
+<div><?= $this->myVar ?></div>
\ No newline at end of file