-
Notifications
You must be signed in to change notification settings - Fork 66
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
Adds unit test for checking year on licence #61
Adds unit test for checking year on licence #61
Conversation
test/unit/LicenceYearTest.php
Outdated
{ | ||
public function testConstructor() | ||
{ | ||
$license = explode("\n", file_get_contents('./LICENSE.txt')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the previous build on Travis, the test was failing because it couldn't find this file. I am wondering if we are running into a file path issue?
The test is running from a different directory than the License file, should we be using a path relative to the file system, rather than the repo, instead?
@micheleorselli do you think this is similar to the issue you fixed on #60? |
@mbernier yeah, it could be. I'll provide a fix also for this |
Thank you!
|
Hello @micheleorselli, |
…in_licence Adds unit test for checking year on licence
Fixes #57
Checklist
Short description of what this PR does:
This PR adds a unit test for checking the year in the license.txt files matches the current year