PHP Classes

Testing PHP Auto Style Fixer

Recommend this page to a friend!

      PHP Auto Style Fixer  >  All threads  >  Testing PHP Auto Style Fixer  >  (Un) Subscribe thread alerts  
Subject:Testing PHP Auto Style Fixer
Summary:No output is produced
Messages:3
Author:Rick Ruggiero
Date:2019-05-27 23:32:42
 

  1. Testing PHP Auto Style Fixer   Reply   Report abuse  
Picture of Rick Ruggiero Rick Ruggiero - 2019-05-27 23:32:42
I attempted to run the Tests.php and it tested as and no output was produced. Any idea what would be causing this behavior?

  2. Re: Testing PHP Auto Style Fixer   Reply   Report abuse  
Picture of Max Base Max Base - 2020-12-02 13:52:29 - In reply to message 1 from Rick Ruggiero
Hi Rick,

We did check your issue. and we did add a new file to generate output files.

Just a summary:
Tests.php: Just checking and compare your output file with PHP library result.

Generates.php: Generate beautifuller file at `output` directory from all of your .php file in `php` directory.

Sorry for late reply, you can ask in github issue for future problems.

Thank you so much.

Regards,
Max

  3. Re: Testing PHP Auto Style Fixer   Reply   Report abuse  
Picture of Max Base Max Base - 2020-12-02 13:58:50 - In reply to message 2 from Max Base
How Tests.php works?

```
[max@base tests]$ php Tests.php
-> 1 / 1.php => TRUE
```

How Generates.php works?

```
[max@base tests]$ rm output/1.php
[max@base tests]$ php Generates.php
[1]=> output/1.php created!
[max@base tests]$ cat output/1.php
<?php
/* dfgdgdf gdfg */
for($v = 7;$v <= 100 / 10;$v++) {

$b=$v;
$x=[];
for($i = 1;$i <= $v;$i++) {

$x[]=$i;
}

for($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) {

$r=$k;
solve($x, $v, $b, $k, $r);
}

}
```