PHPUnit, LAMP, Magento and Netbeans

When using PHPUnit with xampp the first the to do is install PHPUnit through pear. You usually need to update pear first, after that you should be able to follow the instructions here Getting PHPUnit working with Magento is fairly straight forward. It’s just a case of including Mage.php and then calling Mage::app(); in the setup method of your test class: <?php require_once '../app/Mage.php'; class TemplateTest extends PHPUnit_Framework_TestCase { public function setUp() { Mage::app(); } public function testExample() { $helper = Mage::helper('core'); $this->assertTrue($helper instanceof Mage_Core_Helper_Data, "Magento isn't running!"); } } If you use NetBeans as your IDE you’ll be glad to know that it has support for running your tests directly without having to use a terminal. Read On →

How to disable netbeans auto-complete of method variables

There is a new feature in Netbeans that tries to auto fill the variables for methods and functions in PHP. Whilst this may be something that is a time saver for some, it often gets these wrong, and if you are using descriptive variables in the method then these are overwritten if you have a variable of the same type above your method call. Thankfully there is a way to disable this feature and revert to the old ways. Read On →

Linux LS command for Directories only

If you have a large folder that contains a lot of files but you only want to see what directories are in there, then this little snippet is for you: ls -d -- */ You may decide to make an alias for it echo "alias lld='ls -alFhd -- */'" >> ~/.bashrc

Netbeans Keyboard Select

I recently installed the latest version of Netbeans (7.1) and decided to have a look through the available plugins at the same time. In there I found one called Quick File Chooser. This replaces the file selector with a keyboard optimised version, which includes auto-complete and narrowing down a file list as you type. If you prefer the keyboard over the mouse this is a required extension!

Magento Programmer

These days we call programmers developers. When working with web sites the usual term is web developer. Edmonds Commerce are a team of highly skilled PHP web developers that specialise in Magento Development. If you are looking for a Magento programmer, i.e. a Magento developer, then you have come to the right place. Get in touch with Edmonds Commerce today to get the technical Magento expertise you need to make the most of your business.

UK Magento - Magento Developers UK

If you are looking for a web development agency that specialises and Magento and only the most highly skilled, Zend Certified PHP developers and specialises entirely on ecommerce PHP development then you have come to the right place. Edmonds Commerce Ltd are a UK Magento specialist agency who have been working with Magento since the beginning. We can help you with all kinds of technical Magento requirements including Magento upgrades, custom Magento extensions, API integrations, bug fixing - you name it, we can (and probably already have) done it with Magento. Read On →