public function testInDirectory() { $file = new \Core\Filestore\Backends\FileLocal('core/tests/updater-testdocument.txt'); $this->assertTrue($file->inDirectory(ROOT_PDIR)); $this->assertTrue($file->inDirectory(ROOT_PDIR . 'core/tests')); $this->assertFalse($file->inDirectory(\Core\Filestore\get_tmp_path())); }