Skip to content

Commit 3a2ccb8

Browse files
committed
Added integration with Travis CI, Coveralls.
1 parent 4fd947f commit 3a2ccb8

File tree

8 files changed

+48
-331
lines changed

8 files changed

+48
-331
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src_dir: YaLinqo

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/vendor/
2+
/phpdocs/
3+
composer.lock
4+
tmp.php
5+
16
# IDE
27
.project
38
.buildpath

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- nightly
9+
10+
matrix:
11+
allow_failures:
12+
- php: nightly
13+
14+
install:
15+
- composer install --dev
16+
17+
script:
18+
- mkdir -p build/logs
19+
- phpunit --coverage-clover build/logs/clover.xml Tests
20+
21+
#after_script:
22+
# - vendor/bin/coveralls -v

Tests/Testing/Comparator_ArrayEnumerable.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

Tests/Testing/TestCase_Enumerable.php

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,23 @@
77

88
class TestCase_Enumerable extends \PHPUnit_Framework_TestCase
99
{
10-
static function setUpBeforeClass ()
11-
{
12-
\PHPUnit_Framework_ComparatorFactory::getDefaultInstance()->register(new \Tests\Testing\Comparator_ArrayEnumerable);
13-
}
14-
15-
function setUp ()
10+
protected function setUp ()
1611
{
1712
$this->setOutputCallback(function ($str) { return str_replace("\r\n", "\n", $str); });
1813
}
1914

20-
function assertEnumEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
15+
public static function assertEnumEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
2116
{
22-
$this->assertEquals($expected, $actual->take($maxLength));
17+
self::assertEquals($expected, $actual->take($maxLength)->toArrayDeep());
2318
}
2419

25-
function assertEnumOrderEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
20+
public static function assertEnumOrderEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
2621
{
27-
$this->assertEquals($expected, $actual->take($maxLength)->select('array($k, $v)', Functions::increment()));
22+
self::assertEquals($expected, $actual->take($maxLength)->select('array($k, $v)', Functions::increment())->toArrayDeep());
2823
}
2924

30-
function assertEnumValuesEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
25+
public static function assertEnumValuesEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
3126
{
32-
$this->assertEquals($expected, $actual->take($maxLength)->toValues());
27+
self::assertEquals($expected, $actual->take($maxLength)->toValues()->toArrayDeep());
3328
}
34-
}
29+
}

YaLinqo/Examples.php

Lines changed: 0 additions & 287 deletions
This file was deleted.

0 commit comments

Comments
 (0)