Skip to content

Commit 3107c6f

Browse files
committed
Initial unit testing skeleton
1 parent f0d0b48 commit 3107c6f

12 files changed

+812
-340
lines changed

.travis.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# we actually need both environments PHP and rvm
2+
# however it is only possible to define the environment for one language
3+
language: php
4+
rvm: 1.9.3
5+
php:
6+
- 5.4
7+
- 5.5
8+
9+
notifications:
10+
email:
11+
12+
13+
env:
14+
- PUPPET_VERSION=3.3.1
15+
16+
before_script:
17+
- composer install
18+
19+
# PHPUnit tests only, rake spec could not be done within the same travis worker
20+
# (ruby is installed on a PHP worker but .gemfile will be ignored)
21+
script: php vendor/phpunit/phpunit/phpunit.php --coverage-text --configuration phpunit_ci.xml.dist
22+
23+
# whitelist
24+
branches:
25+
only:
26+
- master
27+
- travis
28+
- spec

app/SymfonyRequirements.php

+2
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ class_exists('Locale'),
648648
||
649649
(extension_loaded('apc') && ini_get('apc.enabled'))
650650
||
651+
(extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable'))
652+
||
651653
(extension_loaded('Zend OPcache') && ini_get('opcache.enable'))
652654
||
653655
(extension_loaded('xcache') && ini_get('xcache.cacher'))

composer.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"ircmaxell/random-lib": "1.0.*@dev",
2323
"zenstruck/slugify-bundle": "1.*@dev"
2424
},
25+
"require-dev": {
26+
"phpunit/phpunit": "3.7.27",
27+
"whatthejeff/nyancat-phpunit-resultprinter": "1.1.x-dev",
28+
"ptrofimov/xpmock": "dev-master"
29+
},
2530
"scripts": {
2631
"post-install-cmd": [
2732
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
@@ -41,7 +46,7 @@
4146
"config": {
4247
"bin-dir": "bin"
4348
},
44-
"minimum-stability": "stable",
49+
"minimum-stability": "dev",
4550
"extra": {
4651
"symfony-app-dir": "app",
4752
"symfony-web-dir": "web",

0 commit comments

Comments
 (0)