diff options
Diffstat (limited to 'Acl/Tests')
-rw-r--r-- | Acl/Tests/Dbal/AclProviderBenchmarkTest.php | 2 | ||||
-rw-r--r-- | Acl/Tests/Dbal/MutableAclProviderTest.php | 1 | ||||
-rw-r--r-- | Acl/Tests/Voter/AclVoterTest.php | 14 |
3 files changed, 9 insertions, 8 deletions
diff --git a/Acl/Tests/Dbal/AclProviderBenchmarkTest.php b/Acl/Tests/Dbal/AclProviderBenchmarkTest.php index c7383dc..dab90d4 100644 --- a/Acl/Tests/Dbal/AclProviderBenchmarkTest.php +++ b/Acl/Tests/Dbal/AclProviderBenchmarkTest.php @@ -107,7 +107,7 @@ class AclProviderBenchmarkTest extends \PHPUnit_Framework_TestCase protected function generateAclLevel($depth, $parentId, $ancestors) { $level = count($ancestors); - for ($i = 0,$t = rand(1, 10); $i<$t; $i++) { + for ($i = 0, $t = rand(1, 10); $i<$t; $i++) { $id = $this->generateAcl($this->chooseClassId(), $parentId, $ancestors); if ($level < $depth) { diff --git a/Acl/Tests/Dbal/MutableAclProviderTest.php b/Acl/Tests/Dbal/MutableAclProviderTest.php index f0a68a0..457fbfa 100644 --- a/Acl/Tests/Dbal/MutableAclProviderTest.php +++ b/Acl/Tests/Dbal/MutableAclProviderTest.php @@ -452,6 +452,7 @@ class MutableAclProviderTest extends \PHPUnit_Framework_TestCase * * @param AclProvider $provider * @param array $data + * * @throws \InvalidArgumentException * @throws \Exception */ diff --git a/Acl/Tests/Voter/AclVoterTest.php b/Acl/Tests/Voter/AclVoterTest.php index f13df1f..c4c0b4e 100644 --- a/Acl/Tests/Voter/AclVoterTest.php +++ b/Acl/Tests/Voter/AclVoterTest.php @@ -27,7 +27,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase */ public function testSupportsAttribute($attribute, $supported) { - list($voter,, $permissionMap,,) = $this->getVoter(true, false); + list($voter, , $permissionMap, ,) = $this->getVoter(true, false); $permissionMap ->expects($this->once()) @@ -44,7 +44,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase */ public function testSupportsAttributeNonString($attribute) { - list($voter,,,,,) = $this->getVoter(true, false); + list($voter, , , , ,) = $this->getVoter(true, false); $this->assertFalse($voter->supportsAttribute($attribute)); } @@ -72,7 +72,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase */ public function testSupportsClass($class) { - list($voter,,,,) = $this->getVoter(); + list($voter, , , ,) = $this->getVoter(); $this->assertTrue($voter->supportsClass($class)); } @@ -88,7 +88,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase public function testVote() { - list($voter,, $permissionMap,,) = $this->getVoter(); + list($voter, , $permissionMap, ,) = $this->getVoter(); $permissionMap ->expects($this->atLeastOnce()) ->method('getMasks') @@ -103,7 +103,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase */ public function testVoteWhenNoObjectIsPassed($allowIfObjectIdentityUnavailable) { - list($voter,, $permissionMap,,) = $this->getVoter($allowIfObjectIdentityUnavailable); + list($voter, , $permissionMap, ,) = $this->getVoter($allowIfObjectIdentityUnavailable); $permissionMap ->expects($this->once()) ->method('getMasks') @@ -124,7 +124,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase */ public function testVoteWhenOidStrategyReturnsNull($allowIfUnavailable) { - list($voter,, $permissionMap, $oidStrategy,) = $this->getVoter($allowIfUnavailable); + list($voter, , $permissionMap, $oidStrategy,) = $this->getVoter($allowIfUnavailable); $permissionMap ->expects($this->once()) ->method('getMasks') @@ -365,7 +365,7 @@ class AclVoterTest extends \PHPUnit_Framework_TestCase { list($voter, $provider, $permissionMap, $oidStrategy, $sidStrategy) = $this->getVoter(); - $oid = new ObjectIdentity('someID','someType'); + $oid = new ObjectIdentity('someID', 'someType'); $permissionMap ->expects($this->once()) |