Skip to content

Adds unit test for checking file existence in repo #60

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

Merged
merged 3 commits into from
Dec 11, 2017

Conversation

micheleorselli
Copy link

fixes #58

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Oct 28, 2017
@SendGridDX
Copy link

SendGridDX commented Oct 28, 2017

CLA assistant check
All committers have signed the CLA.

$composeExists = file_exists('./docker-compose.yml') || file_exists('./docker/docker-compose.yml');
$this->assertTrue($composeExists);

$dockerExists = file_exists('./Docker') || file_exists('./docker/Docker')
Copy link

Choose a reason for hiding this comment

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

This line is missing a ; so I am adding it in :)

0.21s$ ../../vendor/bin/phpunit . --bootstrap bootstrap.php --filter test* --coverage-clover clover.xml
PHP Parse error:  syntax error, unexpected '$this' (T_VARIABLE) in /home/travis/build/sendgrid/php-http-client/test/unit/FilesExistTest.php on line 28

@mbernier mbernier added difficulty: medium fix is medium in difficulty and removed status: code review request requesting a community code review or review from Twilio labels Nov 1, 2017
@thinkingserious
Copy link
Contributor

@micheleorselli

We have not been able to merge your Pull Request, but because you are awesome - we wanted to make sure you could still get a SendGrid Hacktoberfest shirt.

Please go fill out our swag form before Nov 5th and we will send the shirt! (We know that you might have tried this before and it didn’t work, sorry about that!)

You have till Nov 5th to fill out this form in order to get the Hacktoberfest shirt!

Thank you for contributing during Hacktoberfest! We hope to see you in the repos soon! Just so you know, we always give away a SendGrid shirt for your first ever non-Hacktoberfest PR that gets merged.

{
public function testFileArePresentInRepo()
{
$this->assertFileExists('./.gitignore');

Choose a reason for hiding this comment

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

There was 1 failure:
1) SendGrid\Test\FilesExistTest::testFileArePresentInRepo
Failed asserting that file "./.gitignore" exists.
/home/travis/build/sendgrid/php-http-client/test/unit/FilesExistTest.php:9

I am wondering if PHP is not checking the root directory, but in fact, checking the test file's directory?
Can you please try outputting the directory here to test and fixing the file paths accordingly?

Copy link
Author

Choose a reason for hiding this comment

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

yup, will try to do it asap

Choose a reason for hiding this comment

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

Thank you!

@mbernier
Copy link

If you are interested, we would love the opportunity to talk to you about Hacktoberfest and our API libraries.

Our agenda would be: Explore what you liked and is there anything we can do to improve?

You can grab a time on my calendar that works for you and we can have a chat on Google Hangout or Skype. If you prefer, you can email me using my GitHub username at my company’s domain.

Thank you so much,

Matt Bernier - @mbernier - SendGrid Developer Experience Product Manager
Elmer Thomas - @thinkingserious - SendGrid Developer Experience Engineer
@sendgrid

@micheleorselli
Copy link
Author

@mbernier done! Let me know if this fixes the problem

@mbernier
Copy link

This is great, thanks for making the change!!

@mbernier mbernier merged commit 5dc4530 into sendgrid:master Dec 11, 2017
@thinkingserious
Copy link
Contributor

Hello @micheleorselli,

Thanks again for the PR!

We appreciate your contribution and look forward to continued collaboration. Thanks!

Team SendGrid DX

Falseclock pushed a commit to Falseclock/php-http-client that referenced this pull request Jan 30, 2019
Adds unit test for checking file existence in repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium fix is medium in difficulty
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unittest to check for specific repo files
5 participants