Tests fails
mangelsnc opened this issue · comments
Hi Carles!
I'm trying to setup the project and play with it but I can't make it work.
I have cloned the repository, installed the vendors, given to the "documents" folder the right permissions, configured the vhost... but fails on the first test:
PHPUnit 3.7.28 by Sebastian Bergmann.
Configuration read from /Library/WebServer/Documents/html2pdf-service/phpunit.xml.dist
E
Time: 18 ms, Memory: 9.50Mb
There was 1 error:
1) Html2Pdf\Test\Functional\CreatePdfTest::itReturnsTheResourceLocationWhenCreatingAResource
Undefined variable: this
You know what is happening?
PD: I think this project can be enhanced with a lot of features! Nice work!
How strange. ¿Can you tell me what version of PHP are you running?
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
and
PHPUnit 3.7.28 by Sebastian Bergmann.
I'm running it on Mac, if it helps you.
Okay, PHP 5.3 cannot execute $this inside a closure.
Applying a hotfix right now.
Hi, Travis seems not to have some old php versions installed (trying with 5.3.2, which is widely used).
Can you pull the changes I've made and test it yourself manually? It should work now.
Okay @mangelsnc !
Thanks a lot for your feedback. I'll add the binaries for the available platforms :)
I've made a few changes and added the MAC OS binary: https://github.com/carlescliment/html2pdf-service#configure-the-binary
Thanks for reporting!