| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ParseTest extends \PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Ing |
||
| 14 | */ |
||
| 15 | private $engine; |
||
| 16 | |||
| 17 | protected function setUp() |
||
| 18 | { |
||
| 19 | $this->engine = new Ing(); |
||
| 20 | $this->engine->loadString(file_get_contents(__DIR__.'/sample')); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testParseStatementBank() |
||
| 24 | { |
||
| 25 | $method = new \ReflectionMethod($this->engine, 'parseStatementBank'); |
||
| 26 | $method->setAccessible(true); |
||
| 27 | $this->assertEquals('ING', $method->invoke($this->engine)); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testParsesAllFoundStatements() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @TODO this is WIP, add more! |
||
| 44 | */ |
||
| 45 | public function testSanitizeDescription() |
||
| 53 |