Skip to content

Conversation

@Romchik38
Copy link

  1. Refactored static function isValidAudio:
  • now this method only reads data from provided filename
  • logic moved to new public static method isValid
  • added try/cat block in case when file_get_contents returns false
  1. New public static method isValid
  • reads data from string and makes a file validity decision
  1. Composer.json:
  • created require-dev with phpunit
  • created autoload-dev with folder tests
  • created scripts with tests and phpunit to simplify run tests with one command composer tests

@wapmorgan
Copy link
Owner

Should remove composer.lock

@Romchik38
Copy link
Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants