summaryrefslogtreecommitdiff
path: root/scripts/dev/generate-phpt/tests/gtCodeSnippetTest.php
blob: 6d4d5861c3163af1794f21ed49c9fad270b98164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
require_once 'PHPUnit/Framework.php';
require_once dirname(__FILE__) . '/../src/gtAutoload.php';


class gtCodeSnippetTest extends PHPUnit_Framework_TestCase
{

  public function testAppend() {
    $array = array('something', 'nothing');
    $array = gtCodeSnippet::append('loopClose', $array);
    $this->assertEquals($array[2], '}');
  }
}
?>