From 5ca3745ba93a6a33016cfe52f3ebf2aa8847c1ae Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Thu, 30 Jan 2014 09:48:25 -0800 Subject: [PATCH] Remove CLI support from Parsedown.php We'll just have the bin/parsedown version for CLI stuff. Trying to read from STDIN breaks the PHPUnit tests because PHPUnit runs at the CLI --- Parsedown.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index 10f1603..6c34f6d 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -13,20 +13,6 @@ # # -if (Parsedown::is_cli()) { - $file_mode = is_readable($argv[1]); - - if ($file_mode) { - $str = file_get_contents($argv[1]); - } else { - $str = file_get_contents("php://stdin"); - } - - print Parsedown::instance()->parse($str); - - exit(); -} - class Parsedown { # Multiton