Permalink
Browse files

Merge pull request #84 from zeebinz/patch-1

Replace PHP_EOL with "\n" in ReflectionMethod::isEmpty()
  • Loading branch information...
2 parents 87d54a3 + f9ed1b6 commit 7145beb8e2aa7e79730e791ddd46e33f2db5131f @MarcelloDuarte MarcelloDuarte committed Aug 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PHPSpec/Util/ReflectionMethod.php
@@ -68,7 +68,7 @@ public function isEmpty()
$this->_objectOrClassName,
$this->_methodName
);
- list(,$path,) = explode(PHP_EOL, (string)$method);
+ list(,$path,) = explode("\n", (string)$method);
preg_match('/(@@ )(.*\.php)( )(\d+)(\D*)(\d+)/', $path, $matches);
list ($path, $start, $end) = array(
$matches[2], $matches[4], $matches[6]

0 comments on commit 7145beb

Please sign in to comment.