Skip to content

chore(deps): update require-dev phpunit/phpunit to v12 #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"doctrine/dbal": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^12.3.5",
"mockery/mockery": "^1.5",
"fakerphp/faker": "^1.20",
"laravel/pint": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/composer-registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('RegistryClient - Composer Integration', () => {
// Mock file system operations
spyOn(fs, 'existsSync').mockReturnValue(true)
spyOn(fs, 'readFileSync').mockReturnValue(JSON.stringify({
require: {
'require': {
'php': '^8.1',
'laravel/framework': '^10.0',
'guzzlehttp/guzzle': '^7.0',
Expand Down
9 changes: 6 additions & 3 deletions test/package-scanner-ignore-paths.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ describe('PackageScanner IgnorePaths Integration', () => {
try {
// Change back to original directory first, before deleting the test directory
process.chdir(originalCwd)
} catch (error) {
}
catch {
// If we can't change back to original directory, try to change to a safe directory
try {
process.chdir(tmpdir())
} catch {
}
catch {
// If all else fails, change to root
process.chdir('/')
}
}

try {
await fs.rm(testDir, { recursive: true, force: true })
} catch (error) {
}
catch (error) {
// Ignore cleanup errors - the temp directory will be cleaned up by the OS eventually
console.warn(`Failed to clean up test directory ${testDir}:`, error)
}
Expand Down
Loading