Skip to content

Commit

Permalink
Added integration with Travis CI, Coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Athari committed Jun 3, 2015
1 parent 4fd947f commit 3a2ccb8
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 331 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src_dir: YaLinqo
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/vendor/
/phpdocs/
composer.lock
tmp.php

# IDE
.project
.buildpath
Expand Down
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- nightly

matrix:
allow_failures:
- php: nightly

install:
- composer install --dev

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml Tests

#after_script:
# - vendor/bin/coveralls -v
23 changes: 0 additions & 23 deletions Tests/Testing/Comparator_ArrayEnumerable.php

This file was deleted.

21 changes: 8 additions & 13 deletions Tests/Testing/TestCase_Enumerable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,23 @@

class TestCase_Enumerable extends \PHPUnit_Framework_TestCase
{
static function setUpBeforeClass ()
{
\PHPUnit_Framework_ComparatorFactory::getDefaultInstance()->register(new \Tests\Testing\Comparator_ArrayEnumerable);
}

function setUp ()
protected function setUp ()
{
$this->setOutputCallback(function ($str) { return str_replace("\r\n", "\n", $str); });
}

function assertEnumEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
public static function assertEnumEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
{
$this->assertEquals($expected, $actual->take($maxLength));
self::assertEquals($expected, $actual->take($maxLength)->toArrayDeep());
}

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

function assertEnumValuesEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
public static function assertEnumValuesEquals (array $expected, E $actual, $maxLength = PHP_INT_MAX)
{
$this->assertEquals($expected, $actual->take($maxLength)->toValues());
self::assertEquals($expected, $actual->take($maxLength)->toValues()->toArrayDeep());
}
}
}
287 changes: 0 additions & 287 deletions YaLinqo/Examples.php

This file was deleted.

Loading

0 comments on commit 3a2ccb8

Please sign in to comment.