Skip to content

Commit 0a9c2e7

Browse files
committed
added testing support files
1 parent 27d9814 commit 0a9c2e7

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
php:
3+
- 5.3.3
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- hhvm
8+
9+
matrix:
10+
allow_failures:
11+
- php: hhvm
12+
13+
script: vendor/bin/tester tests -s -c tests/php-unix.ini
14+
15+
after_failure:
16+
# Print *.actual content
17+
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
18+
19+
before_script:
20+
# Install Nette Tester
21+
- composer install --no-interaction --dev --prefer-source

tests/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*/output
2+
/test.log
3+
/tmp

tests/bootstrap.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
// The Nette Tester command-line runner can be
4+
// invoked through the command: ../vendor/bin/tester .
5+
6+
if (@!include __DIR__ . '/../vendor/autoload.php') {
7+
echo 'Install Nette Tester using `composer update --dev`';
8+
exit(1);
9+
}
10+
11+
12+
Tester\Environment::setup();
13+
date_default_timezone_set('Europe/Prague');

tests/php-unix.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[PHP]
2+
3+
[Zend]
4+
;zend_extension="./ext/zend_extension"

tests/php-win.ini

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[PHP]
2+
extension_dir = "./ext"
3+
4+
[Zend]
5+
;zend_extension="./ext/php_xdebug-2.0.5-5.3-vc6.dll"

0 commit comments

Comments
 (0)