Skip to content

Commit d918030

Browse files
committed
Added to test to make sure execute successfully runs
1 parent 29b5579 commit d918030

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/PHPJasper/PHPJasperTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ public function testExecuteWithCompile()
104104
$jasper->compile('hello_world.jrxml')->execute();
105105
}
106106

107+
public function testExecute()
108+
{
109+
$jasper = new PHPJasper();
110+
$actual = $jasper->compile(__DIR__ . '/test.jrxml')->execute();
111+
112+
$this->assertInternalType('array', $actual);
113+
}
114+
107115
public function testResourceDirectoryException()
108116
{
109117
$this->expectException(\PHPJasper\Exception\InvalidResourceDirectory::class);

0 commit comments

Comments
 (0)