Skip to content

Commit

Permalink
bug fixed for phpunit config
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 11, 2018
1 parent 8f87b74 commit 17ac74b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<filter>
<whitelist>
<directory suffix=".php">./examples</directory>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>
2 changes: 1 addition & 1 deletion tests/FieldValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Inhere\Validate\FieldValidation;

/**
* @covers FieldValidation
* @covers \Inhere\Validate\FieldValidation
*/
class FieldValidationTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/FilterListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Inhere\Validate\Filter\FilterList;

/**
* @covers FilterList
* @covers \Inhere\Validate\Filter\FilterList
*/
class FilterListTest extends TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/FiltrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Class FiltrationTest
* @covers \Inhere\Validate\Filter\Filtration
*/
class FiltrationTest extends TestCase
{
Expand Down
9 changes: 4 additions & 5 deletions tests/RuleValidationTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

use Inhere\Validate\Validation;
use PHPUnit\Framework\TestCase;
use Inhere\Validate\RuleValidation;

/**
* @covers Validation
* @covers \Inhere\Validate\RuleValidation
*/
class RuleValidationTest extends TestCase
{
Expand Down Expand Up @@ -266,7 +265,7 @@ public function testValidateFailed()
public function testValidateString()
{
$val = '123482';
$v = Validation::make([
$v = RuleValidation::make([
'user_name' => $val
], [
['user_name', 'string', 'min' => 6],
Expand All @@ -284,7 +283,7 @@ public function testValidateString()

public function testValidateJson()
{
$v = Validation::make([
$v = RuleValidation::make([
'log_level' => 'debug',
'log_data' => '[23]',
'log_data1' => '234',
Expand Down Expand Up @@ -356,7 +355,7 @@ public function testArrayValidate()
'key3' => ['23', 'str'],
];

$v = Validation::makeAndValidate($data, [
$v = RuleValidation::makeAndValidate($data, [
['options, key1, key2, key3', 'isArray'],
['options', 'isMap'],
['key1', 'isList'],
Expand Down
2 changes: 1 addition & 1 deletion tests/ValidatorListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Inhere\Validate\ValidatorList;

/**
* @covers ValidatorListTest
* @covers \Inhere\Validate\ValidatorList
*/
class ValidatorListTest extends TestCase
{
Expand Down

0 comments on commit 17ac74b

Please sign in to comment.