Exemple #1
0
 public function testCanConstructAcpAndGetValues()
 {
     $owner = $this->getMockedOwner();
     $grants = $this->getMockedGrants(3);
     $acp = new Acp($owner, $grants);
     $this->assertSame($owner, $acp->getOwner());
     $this->assertInstanceOf('SplObjectStorage', $acp->getGrants());
     $this->assertInstanceOf('SplObjectStorage', $acp->getIterator());
     $this->assertEquals(3, count($acp));
 }