File tree 3 files changed +16
-8
lines changed
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 2
2
[ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/?branch=master )
3
3
[ ![ StyleCI] ( https://styleci.io/repos/46984485/shield?branch=master )] ( https://styleci.io/repos/46984485 )
4
4
[ ![ Latest Stable Version] ( https://poser.pugx.org/geekcom/phpjasper/v/stable )] ( https://packagist.org/packages/geekcom/phpjasper )
5
- [ ![ Total Downloads ] ( https://poser.pugx.org/geekcom/phpjasper/downloads )] ( https://packagist.org/packages/geekcom/phpjasper )
5
+ [ ![ Minimum PHP Version ] ( https://img.shields.io/badge/php-%3E%3D%207.1-blue.svg?style=flat-square )] ( https://php.net/ )
6
6
[ ![ License] ( https://poser.pugx.org/geekcom/phpjasper/license )] ( https://packagist.org/packages/geekcom/phpjasper )
7
- [ ![ Bitcoin Donations] ( https://img.shields.io/badge/bitcoin-donation-orange.svg )] ( https://blockchain.info/address/1LqwqcMfNuNzq6S671z1HjM61MpBuFCGqg )
8
7
9
8
### Docs
10
9
[ ![ Language-pt_BR] ( https://img.shields.io/badge/pt__BR-100%25-green.svg )] ( https://github.com/PHPJasper/phpjasper/blob/master/docs/pt_BR/LEIA-ME_pt_BR.md )
Original file line number Diff line number Diff line change 3
3
[ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/geekcom/phpjasper/?branch=master )
4
4
[ ![ StyleCI] ( https://styleci.io/repos/46984485/shield?branch=master )] ( https://styleci.io/repos/46984485 )
5
5
[ ![ Latest Stable Version] ( https://poser.pugx.org/geekcom/phpjasper/v/stable )] ( https://packagist.org/packages/geekcom/phpjasper )
6
- [ ![ Total Downloads ] ( https://poser.pugx.org/geekcom/phpjasper/downloads )] ( https://packagist.org/packages/geekcom/phpjasper )
6
+ [ ![ Minimum PHP Version ] ( https://img.shields.io/badge/php-%3E%3D%207.1-blue.svg?style=flat-square )] ( https://php.net/ )
7
7
[ ![ License] ( https://poser.pugx.org/geekcom/phpjasper/license )] ( https://packagist.org/packages/geekcom/phpjasper )
8
- [ ![ Bitcoin Donations] ( https://img.shields.io/badge/bitcoin-donation-orange.svg )] ( https://blockchain.info/address/1LqwqcMfNuNzq6S671z1HjM61MpBuFCGqg )
9
8
10
9
### Documentação
11
10
[ ![ Language-en_US] ( https://img.shields.io/badge/en__US-100%25-green.svg )] ( https://github.com/PHPJasper/phpjasper/blob/master/README.md )
Original file line number Diff line number Diff line change @@ -9,30 +9,40 @@ final class PHPJasperTest extends TestCase
9
9
* Class PHPJasperTest
10
10
*
11
11
* @author Rafael Queiroz <rafaelfqf@gmail.com>
12
+ * @author Daniel Rodrigues Lima ( geekcom ) <danielrodrigues-ti@hotmail.com>
12
13
* @package PHPJasper
13
14
*/
14
15
{
16
+ private $ PHPJasper ;
15
17
private $ input ;
16
18
private $ output ;
17
19
20
+ public function setUp ()
21
+ {
22
+ $ this ->PHPJasper = new PHPJasper ();
23
+ }
24
+
25
+ public function tearDown ()
26
+ {
27
+ unset($ this ->PHPJasper );
28
+ }
29
+
18
30
public function testConstructor ()
19
31
{
20
32
$ this ->assertInstanceOf (PHPJasper::class, new PHPJasper ());
21
33
}
22
34
23
35
public function testCompile ()
24
36
{
25
- $ jasper = new PHPJasper ();
26
- $ result = $ jasper ->compile ('{input_file} ' , '{output_file} ' );
37
+ $ result = $ this ->PHPJasper ->compile ('{input_file} ' , '{output_file} ' );
27
38
28
39
$ this ->assertInstanceOf (PHPJasper::class, $ result );
29
40
$ this ->assertEquals ('jasperstarter compile "{input_file}" -o "{output_file}" ' , $ result ->output ());
30
41
}
31
42
32
43
public function testListParameters ()
33
44
{
34
- $ jasper = new PHPJasper ();
35
- $ result = $ jasper ->listParameters ('{input_fille} ' );
45
+ $ result = $ this ->PHPJasper ->listParameters ('{input_fille} ' );
36
46
37
47
$ this ->assertInstanceOf (PHPJasper::class, $ result );
38
48
$ this ->assertEquals ('jasperstarter list_parameters "{input_fille}" ' , $ result ->output ());
You can’t perform that action at this time.
0 commit comments