Setting up PHPUnit using Composer is an option that is available since composer 3.7.5. Older 3.7 versions aren’t considered stable to use this way. I needed to have PHPUnit to run tests in my PHPStorm environment, and I didn’t want to do it by hand or struggle with PEAR on my local server. Composer is a good and easy alternative.
I assume you have installed Composer using the Windows installer found here
Just run the following command to get composer to install PHPUnit globally, for all the projects, and not just this one:
composer global require “phpunit/phpunit=3.7.*”
After that, go to your environment variables, and append the Composer folder to the end of the ‘PATH’ variable :
Substitute <username> with the user name that installed composer.
And you’re ready to go!
If you have multiple PHP configurations on the same system, while at the same time using the command-line interface and a web interface, it can be useful to be able to find out which .ini file is being used at that time in that situation. Lees verder Find ini file used by PHP configuration
Ik gebruik de laatste tijd meer en meer PHPStorm, doordat we bij ImpressCMS een Open Source licentie hebben kunnen bemachtigen bij Jetbrains. PHPStorm biedt ondersteuning voor PHPUnit, waardoor ik die wilde installeren op mijn huidige Windows systeem. Dat loopt niet altijd van een leien dakje
PHPUnit maakt gebruik van PEAR, maar die installatie heeft wat zorg nodig. Bij installatie van PHPUnit 3.6.10 onder XAMPP kreeg ik constand de melding:
No releases available for package pear.PHPUnit.de
Lees verder PHPUnit installeren op XAMPP onder Windows
After getting increasingly dissatisfied with the service from Codesion, ImpressCMS decided to switch to another provider. We had few requirements, and so we started searching for a solution based upon those:
- free or affordable for our budgets
We also thought of the possibility of doing the hosting ourselves, but that would mean an investment of time and effort, which would be unavailable for other tasks. Overall, we thought it was best to let specialized service providers handle that kind of non-core activity. Lees verder ImpressCMS Trac migration to Sourceforge
It must have been one of those days…
It was one of those days I must have felt a bit overconfident. When you read why I think so, I’m sure you’ll all agree. Surfing on the forums of the GarageGames web site, I came across some posts by artists that wanted to share their work with the world. To do that, they were using free hosting sites, among them GeoCities, that impose restrictions on the daily amount of data your site sends over the network. I can understand the GeoCities decision, as they don’t want to host half of the world’s pirated software on free sites. Limiting the distribution of files in this way is a very efficient way for GeoCities, but it kind of limits the usefulness of the service for people wanting to distribute their assets.
I recently changed hosting company, and they provide me with next to unlimited storage space, and tens of gigabytes of data traffic each month. At the moment, my usage doesn’t even come up to 0,1 percent. One could state I still have some capacity left. So, I decided to contact some people and propose them to host their files, and to build a site around it. I figured it would take me a few hours and I would be done.
Oh boy, was I wrong…
Lees verder Building an art website in Xoops