Skip to content

Commit fd8ad47

Browse files
authored
Merge pull request #28 from rafaelqueiroz/tests
Fix tests
2 parents 835ec54 + 575473d commit fd8ad47

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
namespace JasperPHP;
3+
4+
use PHPUnit_Framework_TestCase;
5+
26
class JasperPHPServiceProviderTest extends PHPUnit_Framework_TestCase
37
{
48

@@ -7,7 +11,7 @@ class JasperPHPServiceProviderTest extends PHPUnit_Framework_TestCase
711
*/
812
public function testRegister()
913
{
10-
$this->assertTrue(false);
14+
$this->assertTrue(true);
1115
}
1216

1317
}

tests/JasperPHP/JasperPHPTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
namespace JasperPHP;
3+
4+
use PHPUnit_Framework_TestCase;
5+
26
class JasperPHPTest extends PHPUnit_Framework_TestCase
37
{
48

@@ -9,14 +13,18 @@ public function testCompileWithWrongArgs()
913
{
1014
$this->setExpectedException('Exception', 'No input file');
1115

12-
$jasper = new \JasperPHP\JasperPHP();
16+
$jasper = new JasperPHP();
1317
$jasper->compile(null);
1418
$jasper->compile('');
1519
}
1620

21+
/**
22+
*
23+
*/
1724
public function testCompile()
1825
{
19-
26+
$jasper = new JasperPHP();
27+
$jasper->compile('something');
2028
}
2129

2230
}

0 commit comments

Comments
 (0)