Skrol29 / tinybutstrong

TBS is a PHP template engine for pro and beginners. Only 1 class with few methods properties, but it can do may things for any text templates, including HTML and XML. The only engine that enables W3C compliant templates. It has many plugins including OpenTBS.
http://www.tinybutstrong.com
60 stars 18 forks source link

Tests update #6

Open roxblnfk opened 6 years ago

roxblnfk commented 6 years ago

simpleTest 1.1 added into composer.json

Old simpleTest was not deleted (for compatibility tests with php <5.4)

The results of running tests without plugins on different php versions below: tests

Just run testunit/index.php on php 5 or php 7

Not tested on php <5.3

roxblnfk commented 6 years ago

Support for console mode image

simonschaufi commented 6 years ago

Please rebase your branch on master to avoid any merge commits and then force push your changes

roxblnfk commented 6 years ago

Please rebase your branch on master to avoid any merge commits and then force push your changes

Can i do it from web interface?

simonschaufi commented 6 years ago

Can i do it from web interface?

unfortunatelly not. If you collaborate with others on one pull request you should avoid that as it rewrites your commits. Do that only if you are the only one working on that pull request. Thats why github doesn't support that on the platform.

roxblnfk commented 6 years ago

composer test is now available

Skrol29 commented 6 years ago

I suggest to simply delete the « testunit » and « benches » from this repository. Those are quite old tools now. What do you think ?

simonschaufi commented 6 years ago

would you suggest switchting to phpunit? how easy is it to move to phpunit?

roxblnfk commented 6 years ago

The modern PHPUnit requires php >= 7.1

In this Pull Request i suggest only that you update SimpleTest without losing compatibility For php <5.4 will be used old SimpleTest For php >=5.4 will be used last SimpleTest

When the project will depend on php >=7 then it will be meaningful to rewrite the tests for PHPUnit

roxblnfk commented 5 years ago
> composer update
> composer test

image