Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'zf2/develop' into zend-validator-bitwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Acl implements AclInterface
* will have the least priority, and the last parent added will have the
* highest priority.
*
* @param Role\RoleInterface $role
* @param Role\RoleInterface|string $role
* @param Role\RoleInterface|string|array $parents
* @throws Exception\InvalidArgumentException
* @return Acl Provides a fluent interface
Expand Down
10 changes: 3 additions & 7 deletions test/AclTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl;
Expand All @@ -15,9 +14,6 @@
use Zend\Permissions\Acl\Resource;

/**
* @category Zend
* @package Zend_Permissions
* @subpackage UnitTests
* @group Zend_Acl
*/
class AclTest extends \PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -1168,7 +1164,7 @@ public function testAclAssertionsGetOriginalIsAllowedObjects()
$assertion->assertReturnValue = false;
$this->assertFalse($acl->isAllowed($user, $blogPost, 'modify'), 'Assertion should return false');

// check to see if the last assertion has the proper objets
// check to see if the last assertion has the proper objects
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\User', $assertion->lastAssertRole, 'Assertion did not receive proper role object');
$this->assertInstanceOf('ZendTest\Permissions\Acl\TestAsset\UseCase1\BlogPost', $assertion->lastAssertResource, 'Assertion did not receive proper resource object');

Expand Down Expand Up @@ -1224,13 +1220,13 @@ public function testMethodRemoveAllowDoesNotThrowNotice()
public function testRoleObjectImplementsToString()
{
$role = new Role\GenericRole('_fooBar_');
$this->assertEquals('_fooBar_',(string)$role);
$this->assertEquals('_fooBar_',(string) $role);
}

public function testResourceObjectImplementsToString()
{
$resource = new Resource\GenericResource('_fooBar_');
$this->assertEquals('_fooBar_',(string)$resource);
$this->assertEquals('_fooBar_',(string) $resource);
}

/**
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/AssertionZF7973.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/ExtendedAclZF2234.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/MockAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/UseCase1/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset\UseCase1;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/UseCase1/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset\UseCase1;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/UseCase1/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset\UseCase1;
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/UseCase1/UserIsBlogPostOwnerAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Permissions
*/

namespace ZendTest\Permissions\Acl\TestAsset\UseCase1;
Expand Down

0 comments on commit fb112da

Please sign in to comment.