Skip to content

Commit 6e2e5af

Browse files
committed
Adding tests for JasperPHP::compile
1 parent 08c7388 commit 6e2e5af

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/JasperPHP/JasperPHPTest.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22
class JasperPHPTest extends PHPUnit_Framework_TestCase
33
{
44

5-
/**
5+
/**
66
*
77
*/
8-
public function testCompile()
8+
public function testCompileWithWrongArgs()
99
{
10-
$this->assertTrue(false);
10+
$this->setExpectedException('Exception', 'No input file');
11+
12+
$jasper = new \JasperPHP\JasperPHP();
13+
$jasper->compile(null);
14+
$jasper->compile('');
1115
}
1216

17+
public function testCompile()
18+
{
19+
20+
}
21+
1322
}

0 commit comments

Comments
 (0)