public function testCheckDupe() { $f = File::checkDupe('access.txt', __DIR__ . '/../tmp'); $this->assertEquals('access_1.txt', $f); $f = File::checkDupe('access.txt'); $this->assertEquals('access.txt', $f); }