Skip to content

Commit

Permalink
Add php_unit_dedicate_assert to PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Dec 19, 2017
1 parent 98bfe80 commit e913b68
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ return PhpCsFixer\Config::create()
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'long'),
'protected_to_private' => false,
'php_unit_dedicate_assert' => array('target' => '3.5'),
))
->setRiskyAllowed(true)
->setFinder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ public function formatProvider()
array('s', 3601, '1'),
array('s', 3630, '30'),
array('s', 43200, '0'), // 12 hours

);

$dateTime = new \DateTime('@0');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testRedirectPreservesUrlEncoding()
->setMethods(array('redirect'))
->setConstructorArgs(array(new RequestContext()))
->getMock();

$matcher->expects($this->once())->method('redirect')->with('/foo%3Abar/', 'foo');

$matcher->match('/foo%3Abar');
Expand Down

0 comments on commit e913b68

Please sign in to comment.