Skip to content

Commit

Permalink
Add unit test for #227
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Mar 4, 2015
1 parent e46c80f commit 364b0ad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions php-mode-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -551,4 +551,9 @@ style from Drupal."
(search-forward "return")
(should (eq (current-indentation) (* 2 c-basic-offset)))))

(ert-deftest php-mode-test-issue-227 ()
"multi-line strings indents "
(custom-set-variables '(php-lineup-cascaded-calls t))
(with-php-mode-test ("issue-227.php" :indent t :style pear)))

;;; php-mode-test.el ends here
12 changes: 12 additions & 0 deletions tests/issue-227.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* GitHub Issue: https://github.com/ejmr/php-mode/issues/227
*
* Indentation of multi-line strings
*/

function my_func() {
return "a really long string with = inside " .
"some more text"; // ###php-mode-test### ((indent 49))
}

0 comments on commit 364b0ad

Please sign in to comment.