PK ]GMsJ Vagrantfilenu W+A VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
if Vagrant.has_plugin?("vagrant-cachier")
end
config.vm.provision "shell", inline: "source /vagrant/build/vagrant.sh"
end
PK ]GMR` .travis.ymlnu W+A language: php
before_script: ./build/travis-ci.sh
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
script: bin/phpunit --configuration ./build/travis-ci.xml
notifications:
email: false
irc:
channels:
- "irc.freenode.org#phpunit"
use_notice: true
PK ]GMK- - build/PHPCS/ruleset.xmlnu W+A
Sebastian Bergmann's coding standard
PK ]GMCNU U ; build/PHPCS/Sniffs/Whitespace/ConcatenationSpacingSniff.phpnu W+A getTokens();
if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE ||
$tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) {
$phpcsFile->addError(
'Concatenation operator must be surrounded by whitespace',
$stackPtr
);
}
}
}
PK ]GMA > build/PHPCS/Sniffs/ControlStructures/ControlSignatureSniff.phpnu W+A
Sebastian Bergmann's ruleset
PK ]GM& 8 8 build/vagrant.shnu W+A #!/bin/bash
COMPOSER="/usr/local/bin/composer"
DEBIAN_FRONTEND="noninteractive"
MYSQL_USER="root"
MYSQL_PASSWORD="password"
MYSQL_DATABASE="phpunit_tests"
sed -i "/mirror:\\/\\//d" /etc/apt/sources.list
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse" /etc/apt/sources.list
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse" /etc/apt/sources.list
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse" /etc/apt/sources.list
sed -i "1ideb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse" /etc/apt/sources.list
apt-get update
debconf-set-selections <<< "mysql-server mysql-server/root_password password $MYSQL_PASSWORD"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $MYSQL_PASSWORD"
apt-get install git php5-cli php5-xdebug php5-sqlite php5-mysql mysql-server-5.5 -y --no-install-recommends
mysql -u root -p"$MYSQL_PASSWORD" -e "CREATE DATABASE IF NOT EXISTS $MYSQL_DATABASE;"
if [ ! -f "$COMPOSER" ]; then
php -r "readfile('https://getcomposer.org/installer');" | sudo php -d apc.enable_cli=0 -- --install-dir=$(dirname "$COMPOSER") --filename=$(basename "$COMPOSER")
else
sudo "$COMPOSER" self-update
fi
cd /vagrant
cp phpunit.xml.dist phpunit.xml
sed -i 's///g' phpunit.xml
if [ ! -d vendor ] || [ ! -f vendor/autoload.php ]; then
${COMPOSER} install --no-interaction --prefer-source --dev
fi
PK ]GM|; ; build/travis-ci.xmlnu W+A
../Tests/Constraint
../Tests/DataSet
../Tests/Operation
../Tests/DB
../PHPUnit
PK ]GMu u build/travis-ci.shnu W+A #!/bin/bash
COMPOSER="/usr/local/bin/composer"
COMPOSER_PATH=$(dirname ${COMPOSER})
MYSQL_USER="root"
MYSQL_DATABASE="phpunit_tests"
if [ ! -x "${COMPOSER}" ]; then
echo "Installing Composer"
curl -sS https://getcomposer.org/installer | sudo php -d apc.enable_cli=0 -- --install-dir=${COMPOSER_PATH} --filename=$(basename ${COMPOSER})
else
echo "Updating Composer"
sudo ${COMPOSER} self-update
fi
${COMPOSER} install --no-interaction --prefer-source --dev
mysql -u ${MYSQL_USER} -e "CREATE DATABASE IF NOT EXISTS $MYSQL_DATABASE;"
sed -i 's///g' build/travis-ci.xml
PK ]GM
_SZO ZO package.xmlnu W+A
DbUnit
pear.phpunit.de
DbUnit port for PHP/PHPUnit to support database interaction testing.
DbUnit port for PHP/PHPUnit to support database interaction testing.
Sebastian Bergmann
sb
sb@sebastian-bergmann.de
yes
2014-03-26
1.3.1
1.3.0
stable
stable
The BSD 3-Clause License
http://github.com/sebastianbergmann/dbunit/blob/master/README.markdown
5.3.3
1.9.4
PHPUnit
pear.phpunit.de
3.7.0
Yaml
pear.symfony.com
2.1.0
pdo
simplexml
windows
PK ]GMFo
dbunit.batnu W+A @echo off
REM This file is part of DBUnit.
REM
REM (c) Sebastian Bergmann
REM
REM For the full copyright and license information, please view the LICENSE
REM file that was distributed with this source code.
REM
if "%PHPBIN%" == "" set PHPBIN=@php_bin@
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
"%PHPBIN%" "@bin_dir@\dbunit" %*
PK ]GMi composer/bin/dbunitnu W+A #!/usr/bin/env php
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$files = array(
__DIR__ . '/../../../autoload.php', // ./vendor/autoload.php
__DIR__ . '/../../../../autoload.php' // ./autoload.php
);
$found = FALSE;
foreach ($files as $file) {
if (file_exists($file)) {
require $file;
$found = TRUE;
break;
}
}
if (!$found) {
die(
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);
}
$command = new PHPUnit_Extensions_Database_UI_Command(
new PHPUnit_Extensions_Database_UI_ModeFactory()
);
$command->main(
new PHPUnit_Extensions_Database_UI_Mediums_Text($_SERVER['argv']),
new PHPUnit_Extensions_Database_UI_Context()
);
PK ]GM*h
.gitignorenu W+A .idea
.vagrant
build/api
build/code-browser
build/coverage
build/logs
build/pdepend
cache.properties
composer.lock
phpunit.xml
vendor
PK ]GMaY( &