UPHPUers, Our PHP TestFest 2017 event is TOMORROW, Thursday, September 21, at 7pm, and there will be pizza provided by Alex Clark with TEKsystems. We are participating in a world-wide community event to add tests to PHP core by writing tests in PHP for PHP functionality.
To be prepared, please watch these 6 instructional videos produced by Sammy Powers on how to set up and write the tests. They can be found online at https://phptestfest.org/tutorials/writing-tests-for-php-source/. Ideally come ready to start writing tests by having PHP source cloned and the ability to run tests, which is videos 1 and 2. Please bring a laptop to work on and a power cord. Even if you are unable to watch all the videos and do the setup, still please join us and you can do some pair programming! As part of my preparation, I built a new very basic Ubuntu VM using https://puphpet.com/ (doesn't even need PHP) and then followed Sammy's videos running the commands. The abbreviated commands version to go from that bare VM to running PHP tests is (after extracting zip from puphpet, cd into that directory, and make sure to have vagrant and virtualbox installed): --------------- vagrant up vagrant ssh sudo apt-get update cd /var/www/html git clone https://github.com/php/php-src.git cd php-src sudo apt-get install autoconf -y ./buildconf sudo apt-get install libxml2-dev -y sudo apt-get install valgrind -y ./configure --enable-maintainer-zts --enable-debug --enable-cli-sapi make sapi/cli/php run-tests.php -P tests/basic/001.phpt --------------- Please feel free to email me or message me on utos.slack.com with any and all setup questions. We are all in this together, learning and participating. Please join us whether you are new to PHP, have some experience, or have even already written tests for PHP core. There are prizes for user groups and individual prizes to be won as well, just be sure to include a '--CREDIT--' with your name and UPHPU (similar to this PR https://github.com/php/php-src/commit/ 141f26e9a9b6633a317742d1c0696b2cfdd8c1cf) and reference UPHPU on the PR. If you do have experience writing tests and would like to help out please email me! Some helpful links: - TestFest site: https://phptestfest.org - Example PR: https://github.com/php/php-src/commit/ 141f26e9a9b6633a317742d1c0696b2cfdd8c1cf - PHP test coverage: http://gcov.php.net/PHP_HEAD/lcov_html/ I hope to see you all tomorrow! Mark Niebergall UPHPU President _______________________________________________ UPHPU mailing list UPHPU@uphpu.org http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net