SE7ENSKY / jade2php

Unlock Jade for PHP! Convert Jade templates into raw PHP templates. CLI tool and JavaScript API. Test covered.
43 stars 10 forks source link

doctype xml test is failing. #5

Closed janwirth closed 9 years ago

janwirth commented 9 years ago

1) Jade Language Reference Doctype doctype xml:

  AssertionError: expected '\nParse error: parse error in /Users/jan/jade2php/__input.php on line 1' to deeply equal '<?xml version="1.0" encoding="utf-8" ?>'
  + expected - actual

  +<?xml version="1.0" encoding="utf-8" ?>
  -
  -Parse error: parse error in /Users/jan/jade2php/__input.php on line 1
ivankravchenko commented 9 years ago

Do you have PHP installed? php --version

ivankravchenko commented 9 years ago

The whole Jade Language Reference docs.test.coffee is based on testing that all Jade's original documentation examples compiles with jade2php (and then running with php) exactly same as original Jade compiler. To test it, PHP executable must be present. I will extend test suite to show if PHP is installed (which is required to run this test).

ivankravchenko commented 9 years ago

Done in 60b8932274a90aea5441bcd43377fe01de23675e. Please let me know if tests are running okay in your environment (of course, PHP installation is required).

janwirth commented 9 years ago

109 passing (2s) all the tests are working with a clone i just did.

PHP 5.5.12-2ubuntu4.1 (cli) (built: Oct 29 2014 11:59:49)