public function testConstructor() { $a = Acl::factory(Role::factory('admin'), Resource::factory('page')); $this->assertInstanceOf('Pop\\Auth\\Acl', $a); $this->assertTrue($a->hasRole('admin')); $this->assertTrue($a->hasResource('page')); }