Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Exclude manual type hints from test coverage #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Silic0nS0ldier committed Mar 17, 2019
1 parent a031f45 commit e45a48b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/AssetBundles/GulpBundleAssetsBundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class GulpBundleAssetsBundles implements AssetBundlesInterface
public function __construct($filePath)
{
if (!is_string($filePath)) {
throw new \InvalidArgumentException('$filePath must of type string but was ' . gettype($filePath));
throw new \InvalidArgumentException('$filePath must of type string but was ' . gettype($filePath));// @codeCoverageIgnore
}

// Initalise bundles.
Expand Down
4 changes: 2 additions & 2 deletions src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function setBaseUrl($baseUrl)
{
// Make sure it's a string, until php 7.1
if (!is_string($baseUrl)) {
throw new \InvalidArgumentException('$baseUrl must be of type string but was ' . gettype($baseUrl));
throw new \InvalidArgumentException('$baseUrl must be of type string but was ' . gettype($baseUrl));// @codeCoverageIgnore
}

// Make sure url ends with a slash
Expand Down Expand Up @@ -286,7 +286,7 @@ public function setLocatorScheme($locatorScheme)
{
// Make sure it's a string, until php 7.1
if (!is_string($locatorScheme)) {
throw new \InvalidArgumentException('$locateScheme must be of type string but was ' . gettype($locatorScheme));
throw new \InvalidArgumentException('$locateScheme must be of type string but was ' . gettype($locatorScheme));// @codeCoverageIgnore
} elseif ($locatorScheme == '') {
throw new \InvalidArgumentException('$locatorScheme must not be an empty string.');
}
Expand Down
4 changes: 2 additions & 2 deletions src/AssetsTemplatePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ private function convertAttributes(array $attributes)
private function makeSelfClosingTag($tagName, $closingSlash = true, array $attributes = null)
{
if (!is_string($tagName)) {
throw new \InvalidArgumentException('Expected $tagName to be type string but was ' . gettype($tagName) . '.');
throw new \InvalidArgumentException('Expected $tagName to be type string but was ' . gettype($tagName) . '.'); // @codeCoverageIgnore
}
if (!is_bool($closingSlash)) {
throw new \InvalidArgumentException('Expected $closingSlash to be type bool but was ' . gettype($closingSlash) . '.');
throw new \InvalidArgumentException('Expected $closingSlash to be type bool but was ' . gettype($closingSlash) . '.'); // @codeCoverageIgnore
}

$output = "<$tagName";
Expand Down

0 comments on commit e45a48b

Please sign in to comment.