Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
{

}

}