Exemplo n.º 1
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->connection = Connection::get();
     $this->roleBook = new RoleBook($this->connection);
     for ($k = 0; $k < 10; $k++) {
         $role = new Role();
         $role->setName(RandomBook::getRandomString());
         $this->roleList[] = $role;
     }
 }