Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit a6caca3

Browse files
committed
Updates to test case
- Adds a `@see` annotation pointing to the issue - Improves the test case name - Use standard indentation for new test case
1 parent ee8873f commit a6caca3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/Helper/Placeholder/ContainerTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,19 @@ public function testIndentationIsHonored()
433433
$this->assertContains("\n </ul>", $string, $string);
434434
}
435435

436-
public function testNoUsePrefixPostfixIfNoItems()
436+
/**
437+
* @see https://github.com/zendframework/zend-view/pull/133
438+
*/
439+
public function testNoPrefixOrPostfixAreRenderedIfNoItemsArePresentInTheContainer()
437440
{
438-
$this->container->setPrefix("<h1>")
439-
->setPostfix("</h1>");
441+
$this->container
442+
->setPrefix("<h1>")
443+
->setPostfix("</h1>");
440444
$string = $this->container->toString();
441445
$this->assertEquals('', $string);
442446

443447
$this->container->set('');
444448
$string = $this->container->toString();
445449
$this->assertEquals('<h1></h1>', $string);
446450
}
447-
448451
}

0 commit comments

Comments
 (0)