<?php
class SparkTest extends PHPUnit_Framework_TestCase
{
   private $_spark;

   protected function setUp() {
      $this->_spark = new Spark\Core\Spark();
   }
   
   public function testLoadingTags() {
      $this->assertEquals(1, count($this->_spark->getTags()));

		$this->_spark->addTag("Test", function($html, $inner) { return "Test"; });

      $this->assertEquals(2, count($this->_spark->getTags()));

		$this->_spark->addTag("Test", function($html, $inner) { return "Test 2"; });

      $this->assertEquals(2, count($this->_spark->getTags()));
   }
}
<?php
class SparkTest extends PHPUnit_Framework_TestCase
{
   private $_spark;

   protected function setUp() {
      $this->_spark = new Spark\Core\Spark();
   }
   
   public function testLoadingTags() {
      $this->assertEquals(1, count($this->_spark->getTags()));

		$this->_spark->addTag("Test", function($html, $inner) { return "Test"; });

      $this->assertEquals(2, count($this->_spark->getTags()));

		$this->_spark->addTag("Test", function($html, $inner) { return "Test 2"; });

      $this->assertEquals(2, count($this->_spark->getTags()));
   }
   
   public function testSimpleRender() {

		$this->_spark->addTag("Test", function($html, $inner) { return "Example"; });

   	$html = '<html><head><title>Test</title></head><body><SparkTest></SparkTest></body></html>';
   	$expected_html = '<html><head><title>Test</title></head><body>Example</body></html>';

      $this->assertEquals($expected_html, $this->_spark->render($html));
   }
}
Add test for a basic render
Add test for a basic render
