diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index ae9961ccfa..4d94fc41f4 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -97,9 +97,7 @@ abstract class Client public function insulate($insulated = true) { if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) { - // @codeCoverageIgnoreStart throw new \RuntimeException('Unable to isolate requests as the Symfony Process Component is not installed.'); - // @codeCoverageIgnoreEnd } $this->insulated = (Boolean) $insulated; @@ -378,9 +376,7 @@ abstract class Client */ protected function getScript($request) { - // @codeCoverageIgnoreStart throw new \LogicException('To insulate requests, you need to override the getScript() method.'); - // @codeCoverageIgnoreEnd } /** diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index fcfa48fe8a..94913cd23a 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -145,9 +145,8 @@ class Application if ($exitCode > 255) { $exitCode = 255; } - // @codeCoverageIgnoreStart + exit($exitCode); - // @codeCoverageIgnoreEnd } return $exitCode; diff --git a/src/Symfony/Component/Console/Input/StringInput.php b/src/Symfony/Component/Console/Input/StringInput.php index 7f87f714c4..6537e27a6b 100644 --- a/src/Symfony/Component/Console/Input/StringInput.php +++ b/src/Symfony/Component/Console/Input/StringInput.php @@ -72,9 +72,7 @@ class StringInput extends ArgvInput $tokens[] = stripcslashes($match[1]); } else { // should never happen - // @codeCoverageIgnoreStart throw new \InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10))); - // @codeCoverageIgnoreEnd } $cursor += strlen($match[0]); diff --git a/src/Symfony/Component/Console/Output/StreamOutput.php b/src/Symfony/Component/Console/Output/StreamOutput.php index 4194ed3d1e..7c7b3c4805 100644 --- a/src/Symfony/Component/Console/Output/StreamOutput.php +++ b/src/Symfony/Component/Console/Output/StreamOutput.php @@ -75,10 +75,8 @@ class StreamOutput extends Output protected function doWrite($message, $newline) { if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) { - // @codeCoverageIgnoreStart // should never happen throw new \RuntimeException('Unable to write output.'); - // @codeCoverageIgnoreEnd } fflush($this->stream); @@ -96,12 +94,10 @@ class StreamOutput extends Output */ protected function hasColorSupport() { - // @codeCoverageIgnoreStart if (DIRECTORY_SEPARATOR == '\\') { return false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); } return function_exists('posix_isatty') && @posix_isatty($this->stream); - // @codeCoverageIgnoreEnd } } diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index 4982f8f5d1..ee50d7077c 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -627,9 +627,7 @@ class Crawler extends \SplObjectStorage public function filter($selector) { if (!class_exists('Symfony\\Component\\CssSelector\\CssSelector')) { - // @codeCoverageIgnoreStart throw new \RuntimeException('Unable to filter with a CSS selector as the Symfony CssSelector is not installed (you can use filterXPath instead).'); - // @codeCoverageIgnoreEnd } return $this->filterXPath(CssSelector::toXPath($selector)); @@ -813,11 +811,9 @@ class Crawler extends \SplObjectStorage if ($i == $position) { return $node; } - // @codeCoverageIgnoreStart } return null; - // @codeCoverageIgnoreEnd } /** diff --git a/src/Symfony/Component/Translation/PluralizationRules.php b/src/Symfony/Component/Translation/PluralizationRules.php index 1c695ea57a..d0798c3341 100644 --- a/src/Symfony/Component/Translation/PluralizationRules.php +++ b/src/Symfony/Component/Translation/PluralizationRules.php @@ -18,7 +18,6 @@ namespace Symfony\Component\Translation; */ class PluralizationRules { - // @codeCoverageIgnoreStart private static $rules = array(); /** @@ -212,6 +211,4 @@ class PluralizationRules self::$rules[$locale] = $rule; } - - // @codeCoverageIgnoreEnd }