public function testCreateWithTemplate() { $path = Mktemp\temporaryDir('someXXXdir.XXX'); $this->assertRegExp('{^someXXXdir\\.[A-Za-z0-9]{3}$}', basename($path)); $this->assertSame(sys_get_temp_dir(), dirname($path)); $this->assertTrue(is_dir($path)); $this->assertTrue(is_readable($path)); $this->assertTrue(is_writable($path)); $this->assertTrue(is_executable($path)); rmdir($path); }
public function setUp() { $this->tmpdir = Mktemp\temporaryDir(); }