{"id":3525,"date":"2017-07-20T20:54:34","date_gmt":"2017-07-20T20:54:34","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=3525"},"modified":"2017-07-20T20:58:01","modified_gmt":"2017-07-20T20:58:01","slug":"introduction-test-driven-development-php-using-phpunit-11th-mecode-meetup","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/meetups\/introduction-test-driven-development-php-using-phpunit-11th-mecode-meetup\/","title":{"rendered":"Introduction to Test Driven Development in PHP using PHPUnit &#8211; 11th MeCoDe meetup"},"content":{"rendered":"<h2>Meetup notes<\/h2>\n<p>This Tuesday (18.07.2017) we had <a href=\"https:\/\/www.meetup.com\/MeCoDe\/events\/241112315\/\">our 11th MeCoDe meetup<\/a>, and this time the topic was Introduction to Test Driven Development in PHP using PHPUnit.<\/p>\n<p>The presenter was  Antonio Kova\u010devi\u0107 from the company <a href=\"http:\/\/smartway.com.hr\/\">Smartway<\/a>, who explained:<\/p>\n<ul>\n<li>What are Unit tests<\/li>\n<li>Where should you use Unit tests<\/li>\n<li>What is Test Driven Development<\/li>\n<li>How to use tests as a basis for developing software<\/li>\n<\/ul>\n<p>He also showed us first hand how to write a Unit test and run it.<\/p>\n<h2>Source code<\/h2>\n<p>In case you want to check out the code, you can do so via this <a href=\"https:\/\/drive.google.com\/file\/d\/0BzsVhJ1xLtE9X2lfcGdHQUdUQzQ\/view?usp=drivesdk\">Google Drive link<\/a>.<\/p>\n<h2>Picture time<\/h2>\n<p>[ngg_images source=&#8221;galleries&#8221; container_ids=&#8221;30&#8243; override_thumbnail_settings=&#8221;0&#8243; thumbnail_width=&#8221;120&#8243; thumbnail_height=&#8221;90&#8243; thumbnail_crop=&#8221;1&#8243; images_per_page=&#8221;20&#8243; number_of_columns=&#8221;0&#8243; ajax_pagination=&#8221;0&#8243; show_all_in_lightbox=&#8221;0&#8243; use_imagebrowser_effect=&#8221;0&#8243; show_slideshow_link=&#8221;1&#8243; slideshow_link_text=&#8221;&#91;Show as slideshow&#93;&#8221; order_by=&#8221;sortorder&#8221; order_direction=&#8221;ASC&#8221; returns=&#8221;included&#8221; maximum_entity_count=&#8221;500&#8243; display_type=&#8221;photocrati-nextgen_basic_thumbnails&#8221;]<\/p>\n<h2>You don&#8217;t like PHP? ?<\/h2>\n<p>In case you&#8217;re interested in the topic but aren&#8217;t so quick to jump on PHP ?, you can check out a rather long post I wrote about the <a href=\"http:\/\/www.nikola-breznjak.com\/blog\/javascript\/ionic\/introduction-tdd-ionic-framework\/\">Introduction to TDD in Ionic framework<\/a> which also covers JavaScript\/Angular.<\/p>\n<h2>Call for speakers ?<\/h2>\n<p>As always, we welcome new speakers, even with n0 prior experience (you gotta start somewhere, right? :)) so in case you wanna share something with us, just shoot me an email&#8230;<\/p>\n<p>Now go back to your code and write some tests! \ud83d\ude09<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\">\n<p lang=\"en\" dir=\"ltr\">Introduction to Test Driven Development in PHP using <a href=\"https:\/\/twitter.com\/hashtag\/PHPUnit?src=hash\">#PHPUnit<\/a> &#8211; 11th MeCoDe meetup <a href=\"https:\/\/t.co\/wo9InPSjrQ\">https:\/\/t.co\/wo9InPSjrQ<\/a><\/p>\n<p>&mdash; Nikola Bre\u017enjak (@HitmanHR) <a href=\"https:\/\/twitter.com\/HitmanHR\/status\/888140306075578368\">July 20, 2017<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Meetup notes This Tuesday (18.07.2017) we had our 11th MeCoDe meetup, and this time the topic was Introduction to Test Driven Development in PHP using PHPUnit. The presenter&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-3525","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-meetups"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=3525"}],"version-history":[{"count":2,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3525\/revisions"}],"predecessor-version":[{"id":3552,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3525\/revisions\/3552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/3550"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=3525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=3525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=3525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}