Skip to content

Commit 0af6f11

Browse files
committed
refactor tests
1 parent 50afad4 commit 0af6f11

40 files changed

+39
-397
lines changed

tests/LaravelValidateServiceProviderTestCase.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class LaravelValidateServiceProviderTestCase extends TestCase
88
{
99
/**
1010
* Test all lang folders publish successfully.
11-
*
12-
* @test
13-
*
14-
* @return void
1511
*/
1612
public function test_all_lang_folders_publish_successfully()
1713
{
@@ -28,10 +24,6 @@ public function test_all_lang_folders_publish_successfully()
2824

2925
/**
3026
* Test config file publish successful.
31-
*
32-
* @test
33-
*
34-
* @return void
3527
*/
3628
public function test_config_file_publish_successful()
3729
{

tests/Rules/Valid64TestCase.php renamed to tests/Rules/Valid64Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Milwad\LaravelValidate\Rules\ValidBase64;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class Valid64TestCase extends TestCase
8+
class Valid64Test extends TestCase
99
{
1010
/**
1111
* Test base64 is valid.

tests/Rules/ValidBitcoinAddressTestCase.php renamed to tests/Rules/ValidBitcoinAddressTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidBitcoinAddress;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidBitcoinAddressTestCase extends TestCase
8+
class ValidBitcoinAddressTest extends TestCase
99
{
1010
/**
1111
* Test bitcoin address is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_bitcoin_address_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_bitcoin_address_is_valid()
2521

2622
/**
2723
* Test bitcoin address is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_bitcoin_address_is_not_valid()
3426
{

tests/Rules/ValidCamelCaseTestCase.php renamed to tests/Rules/ValidCamelCaseTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidCamelCase;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidCamelCaseTestCase extends TestCase
8+
class ValidCamelCaseTest extends TestCase
99
{
1010
/**
1111
* Test camel case is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_camel_case_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_camel_case_is_valid()
2521

2622
/**
2723
* Test camel case is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_camel_case_is_not_valid()
3426
{

tests/Rules/ValidCapitalCharWithNumberTestCase.php renamed to tests/Rules/ValidCapitalCharWithNumberTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidCapitalCharWithNumber;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidCapitalCharWithNumberTestCase extends TestCase
8+
class ValidCapitalCharWithNumberTest extends TestCase
99
{
1010
/**
1111
* Test capital char with number is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_capital_char_with_number_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_capital_char_with_number_is_valid()
2521

2622
/**
2723
* Test capital char with number is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_capital_char_with_number_is_not_valid()
3426
{

tests/Rules/ValidCarNumberTestCase.php renamed to tests/Rules/ValidCarNumberTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidCarNumber;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidCarNumberTestCase extends TestCase
8+
class ValidCarNumberTest extends TestCase
99
{
1010
/**
1111
* Test car number is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_car_number_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_car_number_is_valid()
2521

2622
/**
2723
* Test car number is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_car_number_is_not_valid()
3426
{

tests/Rules/ValidCartNumberIranTestCase.php renamed to tests/Rules/ValidCartNumberIranTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidCartNumberIran;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidCartNumberIranTestCase extends TestCase
8+
class ValidCartNumberIranTest extends TestCase
99
{
1010
/**
1111
* Test cart number iran is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_cart_number_iran_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_cart_number_iran_is_valid()
2521

2622
/**
2723
* Test cart number iran is invalid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_cart_number_iran_is_invalid()
3426
{

tests/Rules/ValidCreditCardTestCase.php renamed to tests/Rules/ValidCreditCardTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidCreditCard;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidCreditCardTestCase extends TestCase
8+
class ValidCreditCardTest extends TestCase
99
{
1010
/**
1111
* Test credit card number is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_credit_card_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_credit_card_is_valid()
2521

2622
/**
2723
* Test credit card number is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_credit_card_is_not_valid()
3426
{

tests/Rules/ValidDiscordUsernameTestCase.php renamed to tests/Rules/ValidDiscordUsernameTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidDiscordUsername;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidDiscordUsernameTestCase extends TestCase
8+
class ValidDiscordUsernameTest extends TestCase
99
{
1010
/**
1111
* Test discord username is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_discord_username_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_discord_username_is_valid()
2521

2622
/**
2723
* Test discord username is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_discord_username_is_not_valid()
3426
{

tests/Rules/ValidDomainTestCase.php renamed to tests/Rules/ValidDomainTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
use Milwad\LaravelValidate\Rules\ValidDomain;
66
use Milwad\LaravelValidate\Tests\TestCase;
77

8-
class ValidDomainTestCase extends TestCase
8+
class ValidDomainTest extends TestCase
99
{
1010
/**
1111
* Test domain is valid.
12-
*
13-
* @test
14-
*
15-
* @return void
1612
*/
1713
public function test_domain_is_valid()
1814
{
@@ -25,10 +21,6 @@ public function test_domain_is_valid()
2521

2622
/**
2723
* Test domain is not valid.
28-
*
29-
* @test
30-
*
31-
* @return void
3224
*/
3325
public function test_domain_is_not_valid()
3426
{

0 commit comments

Comments
 (0)