/** * Open some outfile and ensure correct rights * * @access protected */ protected function setUp() { // initialize test entries $this->testentries = array(); foreach ($this->testentries_data as $dn => $attrs) { $entry = Net_LDAP2_Entry::createfresh($dn, $attrs); $this->assertInstanceOf('Net_LDAP2_Entry', $entry, 'ERROR inittializing test entries'); array_push($this->testentries, $entry); } // create outfile if not exists and enforce proper access rights if (file_exists($this->outfile)) { @unlink($this->outfile); } $this->assertTrue(touch($this->outfile), 'Init error: Unable to create ' . $this->outfile); $this->assertTrue(chmod($this->outfile, 0644), 'Init error: Unable to chmod(0644) ' . $this->outfile); }