Skip to content
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

fix a bug I introduced into 0.5.0 + added unittests & updated docs #6

Merged
merged 18 commits into from
Feb 14, 2020

Conversation

bkdotcom
Copy link
Contributor

whew - phpUnit's documentation is sorely lacking in the how to install and run your first test department.
I apologize for the delay.

Most importantly, I discovered that I broke all the add*() methods.
addEmail('user@domain.com');
addEmail('foo@bar.com'); // oops, this is now overwriting the 1st, rather than adding an iteration
I have updated Build/Vcard.php to fix this.

I also need to add a file to the repository (a small image to the tests dir) for testing set('PHOTO') and/or set('LOGO').
apparently this can't be done via the web interface, I will need to add from home.

Oops
I broke all the add*() methods such that they only set the first iteration
addEmail('user1@test.com');
addEmail('user2@test.com');   // should not be overwriting the above!
tests set() for all standard properties and tests all add*() and set*() methods.     tests still need to be created to test that get() / fetch() return properly escaped and encoded strings
completed the testPropertyGroups and testParameters   tests
now uses the set() method
not sure where this is seen/used... updated examples to use the new set() method
@travisbot
Copy link

This pull request passes (merged 39a3b1d into 36d31ea).

@travisbot
Copy link

This pull request passes (merged 410e4d8 into 36d31ea).

@ghost ghost assigned till Aug 18, 2012
@travisbot
Copy link

This pull request passes (merged e4a7a20 into 36d31ea).

@travisbot
Copy link

This pull request passes (merged 4eabd3f into 36d31ea).

@till
Copy link
Member

till commented Aug 22, 2012

I will take a look tomorrow – thanks for helping! :)

}

/**
* @deprecated
* @see self::set()
*/
public function addOrganization($val) {
public function addOrganization($val,$append=true) {
if ( $append && !empty($this->value['ORG'][0]) )
Copy link
Member

Choose a reason for hiding this comment

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

Spaces / coding style here - Run PHPCS over the code.

after running phpCS
after running phpCS
after running phpCS
after running phpCS
@bkdotcom
Copy link
Contributor Author

bkdotcom commented Apr 4, 2013

I'm still not gitHub proficient, but I've updated 4 files to make phpCS mostly happy (at least happy concerning any edits I've made). Let me know if the updates aren't part of my open pull request. Or if I need to to do anything else.
thanks

@generalredneck
Copy link

I was wondering about that... the "new" in the depreciate methods was something I was going to add until I looked at this fix. Going to try it out.

@generalredneck
Copy link

RTBC

@till
Copy link
Member

till commented Feb 17, 2014

@generalredneck @bkdotcom What should we do here?

@bkdotcom
Copy link
Contributor Author

I believe @generalredneck is is saying all is well. and this fix is Ready to be Tested By the Community

@till
Copy link
Member

till commented Feb 27, 2014

@generalredneck @bkdotcom Can either of you help my merging master into this?

# Conflicts:
#	File/IMC/Build.php
#	tests/AllTests.php
phpunit updates & whitespace

added .gitattributes: "* text eol=lf"
test was failing due to line-ending conversion
@bkdotcom
Copy link
Contributor Author

bkdotcom commented Sep 1, 2016

2.5 years later...
master has been merged into this pull-request

@generalredneck
Copy link

7.5 years after the issue was created, I ask if this should still be open

@bkdotcom
Copy link
Contributor Author

@generalredneck Might depend on whether this library is abandoned? I'd love to see this committed.

@ashnazg
Copy link
Member

ashnazg commented Feb 14, 2020

This diff is huge... are there any actual code changes rather than CS?

@ashnazg ashnazg self-requested a review February 14, 2020 16:23
@ashnazg ashnazg merged commit a2c9e23 into pear:master Feb 14, 2020
@ashnazg
Copy link
Member

ashnazg commented Feb 14, 2020

0.6.1 tagged for release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants