Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Added tests for Zepto\Zepto
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Nov 28, 2013
1 parent 22ed769 commit 3c31479
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions tests/Zepto/ZeptoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,62 @@ protected function tearDown()
{
}

/**
* CONSTRUCTOR TESTS
*/

/**
* @covers Zepto\Zepto::__construct()
*/
public function testRouterAdded()
{
$zepto = $this->object;
$this->assertArrayHasKey('router', $zepto->container);
$this->assertInstanceOf(
'Zepto\Router',
$zepto->container['router']
);
}

/**
* @covers Zepto\Zepto::__construct()
*/
public function testPluginLoaderAdded()
{
$zepto = $this->object;
$this->assertArrayHasKey('plugin_loader', $zepto->container);
$this->assertInstanceOf(
'Zepto\FileLoader\PluginLoader',
$zepto->container['plugin_loader']
);
}

/**
* @covers Zepto\Zepto::__construct()
*/
public function testFileLoaderAdded()
{
$zepto = $this->object;
$this->assertArrayHasKey('file_loader', $zepto->container);
$this->assertInstanceOf(
'Zepto\FileLoader\MarkdownLoader',
$zepto->container['file_loader']
);
}

/**
* @covers Zepto\Zepto::__construct()
*/
public function testTwigAdded()
{
$zepto = $this->object;
$this->assertArrayHasKey('twig', $zepto->container);
$this->assertInstanceOf(
'\Twig_Environment',
$zepto->container['twig']
);
}

/**
* @covers Zepto\Zepto::run
* @todo Implement testRun().
Expand Down

0 comments on commit 3c31479

Please sign in to comment.