diff --git a/composer.json b/composer.json
index e2426a7567f289c48b7d16670bd832e635ff0397..c15196a14a0b0550c6c5169a44e447edb39e1383 100644
--- a/composer.json
+++ b/composer.json
@@ -37,8 +37,7 @@
 	},
 	"require-dev": {
 		"mikey179/vfsStream": "1.3.*@dev",
-		"phpunit/phpunit": "4.*@dev",
-		"phpunit/phpunit-mock-objects": "2.*@dev"
+		"phpunit/phpunit": "~4.1"
 	},
 	"suggest": {
 		"ext-gd": "GDlib/Freetype is required for building images with text (GIFBUILDER) and can also be used to scale images",