This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test class for
Zepto\Extension\Twig
and updated test class …
…for ``Zepto\Zepto``
- Loading branch information
1 parent
de5c631
commit 4238744
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
namespace Zepto\Extension; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-02-14 at 20:44:07. | ||
*/ | ||
class TwigTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var \Zepto\Extension\Twig | ||
*/ | ||
protected $twig; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->twig = new Twig(); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers Zepto\Extension\Twig::getName | ||
*/ | ||
public function testGetName() | ||
{ | ||
$this->assertEquals('Twig', $this->twig->getName()); | ||
} | ||
|
||
/** | ||
* @covers Zepto\Extension\Twig::getFunctions | ||
*/ | ||
public function testGetFunctions() | ||
{ | ||
$this->assertContainsOnly('Twig_SimpleFunction', $this->twig->getFunctions()); | ||
// $this->twig->write('', 'Test content'); | ||
} | ||
|
||
/** | ||
* @covers Zepto\Extension\Twig::url_for | ||
*/ | ||
public function testUrlFor() | ||
{ | ||
$this->markTestIncomplete('Not yet implemented'); | ||
} | ||
|
||
/** | ||
* @covers Zepto\Extension\Twig::link_for | ||
*/ | ||
public function testLinkFor() | ||
{ | ||
$this->markTestIncomplete('Not yet implemented'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters