Skip to content

Commit 17ac74b

Browse files
committed
bug fixed for phpunit config
1 parent 8f87b74 commit 17ac74b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<filter>
2020
<whitelist>
21-
<directory suffix=".php">./examples</directory>
21+
<directory suffix=".php">./src</directory>
2222
</whitelist>
2323
</filter>
2424
</phpunit>

tests/FieldValidationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Inhere\Validate\FieldValidation;
55

66
/**
7-
* @covers FieldValidation
7+
* @covers \Inhere\Validate\FieldValidation
88
*/
99
class FieldValidationTest extends TestCase
1010
{

tests/FilterListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Inhere\Validate\Filter\FilterList;
55

66
/**
7-
* @covers FilterList
7+
* @covers \Inhere\Validate\Filter\FilterList
88
*/
99
class FilterListTest extends TestCase
1010
{

tests/FiltrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* Class FiltrationTest
14+
* @covers \Inhere\Validate\Filter\Filtration
1415
*/
1516
class FiltrationTest extends TestCase
1617
{

tests/RuleValidationTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
22

3-
use Inhere\Validate\Validation;
43
use PHPUnit\Framework\TestCase;
54
use Inhere\Validate\RuleValidation;
65

76
/**
8-
* @covers Validation
7+
* @covers \Inhere\Validate\RuleValidation
98
*/
109
class RuleValidationTest extends TestCase
1110
{
@@ -266,7 +265,7 @@ public function testValidateFailed()
266265
public function testValidateString()
267266
{
268267
$val = '123482';
269-
$v = Validation::make([
268+
$v = RuleValidation::make([
270269
'user_name' => $val
271270
], [
272271
['user_name', 'string', 'min' => 6],
@@ -284,7 +283,7 @@ public function testValidateString()
284283

285284
public function testValidateJson()
286285
{
287-
$v = Validation::make([
286+
$v = RuleValidation::make([
288287
'log_level' => 'debug',
289288
'log_data' => '[23]',
290289
'log_data1' => '234',
@@ -356,7 +355,7 @@ public function testArrayValidate()
356355
'key3' => ['23', 'str'],
357356
];
358357

359-
$v = Validation::makeAndValidate($data, [
358+
$v = RuleValidation::makeAndValidate($data, [
360359
['options, key1, key2, key3', 'isArray'],
361360
['options', 'isMap'],
362361
['key1', 'isList'],

tests/ValidatorListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Inhere\Validate\ValidatorList;
55

66
/**
7-
* @covers ValidatorListTest
7+
* @covers \Inhere\Validate\ValidatorList
88
*/
99
class ValidatorListTest extends TestCase
1010
{

0 commit comments

Comments
 (0)