mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Tests > Regex > remove unnecessary @throws tags
This commit is contained in:
@@ -12,7 +12,6 @@ use Generator;
|
|||||||
use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException;
|
use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException;
|
||||||
use Meritoo\Common\Exception\Regex\InvalidColorHexValueException;
|
use Meritoo\Common\Exception\Regex\InvalidColorHexValueException;
|
||||||
use Meritoo\Common\Test\Base\BaseTestCase;
|
use Meritoo\Common\Test\Base\BaseTestCase;
|
||||||
use ReflectionException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test case of the useful regular expressions methods
|
* Test case of the useful regular expressions methods
|
||||||
@@ -25,9 +24,6 @@ class RegexTest extends BaseTestCase
|
|||||||
private $simpleText;
|
private $simpleText;
|
||||||
private $camelCaseText;
|
private $camelCaseText;
|
||||||
|
|
||||||
/**
|
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
|
||||||
public function testConstructor()
|
public function testConstructor()
|
||||||
{
|
{
|
||||||
static::assertHasNoConstructor(Regex::class);
|
static::assertHasNoConstructor(Regex::class);
|
||||||
@@ -553,10 +549,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $nonScalarValue Non scalar value, e.g. [] or null
|
* @param mixed $nonScalarValue Non scalar value, e.g. [] or null
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideNonScalarValue
|
* @dataProvider provideNonScalarValue
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingNonScalarValue($nonScalarValue)
|
public function testGetValidColorHexValueUsingNonScalarValue($nonScalarValue)
|
||||||
@@ -566,10 +558,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $emptyValue Empty value, e.g. ""
|
* @param mixed $emptyValue Empty value, e.g. ""
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorEmptyValue
|
* @dataProvider provideColorEmptyValue
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingEmptyValueWithoutException($emptyValue)
|
public function testGetValidColorHexValueUsingEmptyValueWithoutException($emptyValue)
|
||||||
@@ -579,10 +567,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $emptyValue Empty value, e.g. ""
|
* @param mixed $emptyValue Empty value, e.g. ""
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorEmptyValue
|
* @dataProvider provideColorEmptyValue
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingEmptyValue($emptyValue)
|
public function testGetValidColorHexValueUsingEmptyValue($emptyValue)
|
||||||
@@ -593,10 +577,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $incorrectColor Incorrect value of color
|
* @param string $incorrectColor Incorrect value of color
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorIncorrectLength
|
* @dataProvider provideColorIncorrectLength
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingIncorrectValueWithoutException($incorrectColor)
|
public function testGetValidColorHexValueUsingIncorrectValueWithoutException($incorrectColor)
|
||||||
@@ -606,10 +586,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $incorrectColor Incorrect value of color
|
* @param string $incorrectColor Incorrect value of color
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorIncorrectLength
|
* @dataProvider provideColorIncorrectLength
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingIncorrectValue($incorrectColor)
|
public function testGetValidColorHexValueUsingIncorrectValue($incorrectColor)
|
||||||
@@ -620,10 +596,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $invalidColor Invalid value of color
|
* @param string $invalidColor Invalid value of color
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorInvalidValue
|
* @dataProvider provideColorInvalidValue
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingInvalidValueWithoutException($invalidColor)
|
public function testGetValidColorHexValueUsingInvalidValueWithoutException($invalidColor)
|
||||||
@@ -633,10 +605,6 @@ class RegexTest extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $invalidColor Invalid value of color
|
* @param string $invalidColor Invalid value of color
|
||||||
*
|
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColorInvalidValue
|
* @dataProvider provideColorInvalidValue
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValueUsingInvalidValue($invalidColor)
|
public function testGetValidColorHexValueUsingInvalidValue($invalidColor)
|
||||||
@@ -649,9 +617,6 @@ class RegexTest extends BaseTestCase
|
|||||||
* @param string $color Color to verify
|
* @param string $color Color to verify
|
||||||
* @param string $expected Expected value of color
|
* @param string $expected Expected value of color
|
||||||
*
|
*
|
||||||
* @throws IncorrectColorHexLengthException
|
|
||||||
* @throws InvalidColorHexValueException
|
|
||||||
*
|
|
||||||
* @dataProvider provideColor
|
* @dataProvider provideColor
|
||||||
*/
|
*/
|
||||||
public function testGetValidColorHexValue($color, $expected)
|
public function testGetValidColorHexValue($color, $expected)
|
||||||
|
|||||||
Reference in New Issue
Block a user