File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
src/Test/Unit/Repository/Mapping Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ matrix:
24
24
- php : 5.3
25
25
env : deps="low"
26
26
27
+ before_install :
28
+ - composer self-update
29
+ - composer require 'phpunit/phpunit:^4.8.35|^5.4.3|^6.0' --dev --no-update
30
+
27
31
install :
28
32
- if [ "$deps" = "low" ]; then composer update --prefer-lowest --prefer-stable; fi
29
33
- if [ "$deps" = "" ]; then composer install; fi
30
34
31
35
script :
32
- - phpunit --coverage-clover=coverage.clover
36
+ - vendor/bin/ phpunit --coverage-clover=coverage.clover
33
37
- wget https://scrutinizer-ci.com/ocular.phar
34
38
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change 11
11
12
12
namespace XApi \Repository \Doctrine \Test \Unit \Repository \Mapping ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Xabbuh \XApi \DataFixtures \StatementFixtures ;
15
16
use XApi \Repository \Doctrine \Mapping \Statement ;
16
17
use XApi \Repository \Doctrine \Repository \Mapping \StatementRepository ;
17
18
18
19
/**
19
20
* @author Christian Flothmann <[email protected] >
20
21
*/
21
- abstract class StatementRepositoryTest extends \PHPUnit_Framework_TestCase
22
+ abstract class StatementRepositoryTest extends TestCase
22
23
{
23
24
/**
24
25
* @var \PHPUnit_Framework_MockObject_MockObject
Original file line number Diff line number Diff line change 11
11
12
12
namespace XApi \Repository \Doctrine \Tests \Unit \Repository ;
13
13
14
+ use PHPUnit \Framework \TestCase ;
14
15
use Rhumsaa \Uuid \Uuid as RhumsaUuid ;
15
16
use Xabbuh \XApi \DataFixtures \StatementFixtures ;
16
17
use Xabbuh \XApi \DataFixtures \VerbFixtures ;
23
24
/**
24
25
* @author Christian Flothmann <[email protected] >
25
26
*/
26
- class StatementRepositoryTest extends \PHPUnit_Framework_TestCase
27
+ class StatementRepositoryTest extends TestCase
27
28
{
28
29
/**
29
30
* @var \PHPUnit_Framework_MockObject_MockObject|\XApi\Repository\Doctrine\Repository\Mapping\StatementRepository
@@ -122,6 +123,8 @@ public function testSaveWithoutFlush()
122
123
*/
123
124
protected function createMappedStatementRepositoryMock ()
124
125
{
125
- return $ this ->getMock ('\XApi\Repository\Doctrine\Repository\Mapping\StatementRepository ' );
126
+ return $ this
127
+ ->getMockBuilder ('\XApi\Repository\Doctrine\Repository\Mapping\StatementRepository ' )
128
+ ->getMock ();
126
129
}
127
130
}
You can’t perform that action at this time.
0 commit comments