Skip to content

Commit

Permalink
Fixed coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Jul 27, 2020
1 parent 94d5518 commit 54d5522
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function assertContains($value, array $array, bool $works = true): bool
class ValidatorTest extends \PHPUnit\Framework\TestCase
{


/**
* Tests that it handles the different type of rules, string, single rule array and multiple rule array
*
Expand Down Expand Up @@ -172,7 +171,7 @@ public function testValidateInvalidRule()
$this->expectException(InvalidArgumentException::class);
$validator = new Validator();
$validator->add('foo', 'foo');
$this->assertEmpty($validator->validate(['foo'=>'bar']));
$this->assertEmpty($validator->validate(['foo' => 'bar']));
$this->assertNotEmpty($validator->validate(['email' => 'foo']));
}

Expand All @@ -192,8 +191,8 @@ public function testRules()

$this->assertArrayHasKey('name', $validator->rules());
$this->assertNotEmpty($validator->rules()['name']);
$this->assertEquals(['notEmpty'=>$expected], $validator->rules()['name']);
$this->assertEquals(['notEmpty'=>$expected], $validator->rules('name'));
$this->assertEquals(['notEmpty' => $expected], $validator->rules()['name']);
$this->assertEquals(['notEmpty' => $expected], $validator->rules('name'));
}

/**
Expand Down

0 comments on commit 54d5522

Please sign in to comment.