Skip to content

Commit 1a1125c

Browse files
Merge pull request #1 from rafaelqueiroz/tests
Tests
2 parents 7243aee + 6e2e5af commit 1a1125c

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
"require": {
3232
"php": ">=5.4.0"
3333
},
34+
"require-dev": {
35+
"phpunit/phpunit": "4.8.*"
36+
},
3437
"autoload": {
3538
"psr-0": {
3639
"JasperPHP": "src/"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
class JasperPHPServiceProviderTest extends PHPUnit_Framework_TestCase
3+
{
4+
5+
/**
6+
*
7+
*/
8+
public function testRegister()
9+
{
10+
$this->assertTrue(false);
11+
}
12+
13+
}

tests/JasperPHP/JasperPHPTest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
class JasperPHPTest extends PHPUnit_Framework_TestCase
3+
{
4+
5+
/**
6+
*
7+
*/
8+
public function testCompileWithWrongArgs()
9+
{
10+
$this->setExpectedException('Exception', 'No input file');
11+
12+
$jasper = new \JasperPHP\JasperPHP();
13+
$jasper->compile(null);
14+
$jasper->compile('');
15+
}
16+
17+
public function testCompile()
18+
{
19+
20+
}
21+
22+
}

0 commit comments

Comments
 (0)