<?php
namespace Inanimatt\SiteBuilder;

/**
 * Generated by PHPUnit_SkeletonGenerator on 2012-05-28 at 14:28:43.
 */
class SiteBuilderTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var SiteBuilder
     */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
     */
    protected function setUp()
    {
        $this->object = new SiteBuilder;
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
     */
    protected function tearDown()
    {
    }

    /**
     * @expectedException Inanimatt\SiteBuilder\Exception\ArgumentException
     */
    public function testRegisterRendererException()
    {
        $renderer = $this->getMock('Inanimatt\\SiteBuilder\\Renderer\\RendererInterface');
        $this->object->registerRenderer($renderer, 'invalid');
    }


    /**
     * @covers Inanimatt\SiteBuilder\SiteBuilder::getRenderers
     * @covers Inanimatt\SiteBuilder\SiteBuilder::registerRenderer
     */
    public function testGetSetRenderers()
    {
        $renderer = $this->getMock('Inanimatt\\SiteBuilder\\Renderer\\RendererInterface');
        $this->object->registerRenderer($renderer, array('test'));

        $result = $this->object->getRenderers();
        $this->assertArrayHasKey('test', $result);
        $this->assertEquals($result['test'], $renderer);

    }

    /**
     * @covers Inanimatt\SiteBuilder\SiteBuilder::setDefaultTemplate
     * @covers Inanimatt\SiteBuilder\SiteBuilder::getDefaultTemplate
     */
    public function testGetSetDefaultTemplate()
    {
        $this->object->setDefaultTemplate('test');
        $this->assertEquals('test', $this->object->getDefaultTemplate());
    }

    /**
     * @covers Inanimatt\SiteBuilder\SiteBuilder::setTemplatePath
     * @covers Inanimatt\SiteBuilder\SiteBuilder::getTemplatePath
     */
    public function testGetSetTemplatePath()
    {
        $this->object->setTemplatePath('test');
        $this->assertEquals('test', $this->object->getTemplatePath());
    }

    /**
     * @covers Inanimatt\SiteBuilder\SiteBuilder::renderSite
     * @todo   Implement testRenderSite().
     */
    public function testRenderSite()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
          'This test has not been implemented yet.'
        );
    }

    /**
     * @covers Inanimatt\SiteBuilder\SiteBuilder::renderFile
     * @todo   Implement testRenderFile().
     */
    public function testRenderFile()
    {
        // Remove the following lines when you implement this test.
        $this->markTestIncomplete(
          'This test has not been implemented yet.'
        );
    }
}

Add (incomplete) unit tests for SiteBuilder class
Add (incomplete) unit tests for SiteBuilder class
