The Joy of Hex

Drunken Monkey Coding Style with a hint of Carlin humor

Jul 9, 2013 - 1 minute read - mockery php, phpunit symfony testing

Adding Mockery to Symfony 2.3

Mockery is an essential part of my toolset. You can get more information about mockery from the repo itself, or from nettuts+. My current project in Symfony framework, 2.3 LTS, and I need to use mockery to make my life a whole lot easier. The process consists of three steps, of which step 3 is least documented. First you need to add mockery to your composer.json among other libs you will use

Jun 30, 2013 - 14 minute read - events knpmenu php symfony

Building a Menu in Symfony With Events and Ordering

Menus are simple things, you have a root element, it has children, their children have children, and so on. All nice, clean and simple and utterly dull. Add Knp Menu and bundle to the composer file, run update, go through the docs and set it up, and be on your way. But what happens if you need to construct a menu from different bundles and you have no idea how many items there are and their order.

Jun 20, 2013 - 1 minute read - symfony xdebug php

Symfony 2.3 erroring out with Xdebug

When working with Symfony 2.3 there is a chance that xdebug will start erroring out with “Maximum function nesting level of ‘100’ reached, aborting!” pretty quick. To solve it, add 1 xdebug.max_nesting_level = 1000 into your xdebug.ini file. It will make your life a whole lot easier…

Jun 20, 2013 - 1 minute read - wordpress octopress migration

Bye Wordpress and thanks for... well... um... yeah...

Well this was bound to happen sooner or later. For what its worth I find Wordpress an overkill for my needs (aside from thinking that it is a gigantic pile of crap). So I needed to find an alternative, one that would not make me nauseaus in the process (why yes WP editor, I am thinking of you). After some thought(a very minor one I might add), I concluded that I like Octopress very much, so here we are.