From 18dd7c1fbff1d4ba5ac0cfc0560fdd6e4f893dc7 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Wed, 31 Jul 2013 14:02:59 +0200 Subject: [PATCH] testing loop title --- .../Tests/Core/Template/Loop/TitleTest.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 core/lib/Thelia/Tests/Core/Template/Loop/TitleTest.php diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/TitleTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/TitleTest.php new file mode 100755 index 000000000..c506c22f5 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/TitleTest.php @@ -0,0 +1,53 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Core\Template\Loop\Title; + +/** + * + * @author Etienne Roudeix + * + */ +class TitleTest extends \PHPUnit_Framework_TestCase +{ + public function testGetArgDefinitions() + { + $title = new Title(); +/* + $this->assertTrue($collection->getCount() == 3); + + $this->assertTrue($collection->key() == 'arg0'); + $collection->next(); + $this->assertTrue($collection->key() == 'arg1'); + $collection->next(); + $this->assertTrue($collection->key() == 'arg2'); + $collection->next(); + + $this->assertFalse($collection->valid()); + + $collection->rewind(); + $this->assertTrue($collection->key() == 'arg0');*/ + } +}