Skip to content

Conversation

mikeland73
Copy link
Contributor

@mikeland73 mikeland73 commented Oct 28, 2024

Summary

Add php detector

How was it tested?

  • unit tests
  • devbox init --auto

@mikeland73 mikeland73 requested a review from savil October 28, 2024 21:49
Copy link
Collaborator

@savil savil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding tests!

Comment on lines 30 to 35
dir := t.TempDir()
err := os.WriteFile(filepath.Join(dir, "composer.json"), []byte(`{
"require": {
"php": "^8.1"
}
}`), 0644)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest looking into using https://pkg.go.dev/testing/fstest

@mikeland73 mikeland73 merged commit 1f4db4a into main Oct 29, 2024
29 checks passed
@mikeland73 mikeland73 deleted the landau/add-php-detector branch October 29, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants