Skip to content

Commit

Permalink
Merge pull request PHPJasper#1 from rafaelqueiroz/tests
Browse files Browse the repository at this point in the history
Tests
  • Loading branch information
rafaelqueiroz authored Jan 31, 2017
2 parents 7243aee + 6e2e5af commit 1a1125c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"require": {
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "4.8.*"
},
"autoload": {
"psr-0": {
"JasperPHP": "src/"
Expand Down
13 changes: 13 additions & 0 deletions tests/JasperPHP/JasperPHPServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
class JasperPHPServiceProviderTest extends PHPUnit_Framework_TestCase
{

/**
*
*/
public function testRegister()
{
$this->assertTrue(false);
}

}
22 changes: 22 additions & 0 deletions tests/JasperPHP/JasperPHPTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
class JasperPHPTest extends PHPUnit_Framework_TestCase
{

/**
*
*/
public function testCompileWithWrongArgs()
{
$this->setExpectedException('Exception', 'No input file');

$jasper = new \JasperPHP\JasperPHP();
$jasper->compile(null);
$jasper->compile('');
}

public function testCompile()
{

}

}

0 comments on commit 1a1125c

Please sign in to comment.