This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree 9 files changed +18
-65
lines changed
9 files changed +18
-65
lines changed Original file line number Diff line number Diff line change 13
13
}
14
14
},
15
15
"require" : {
16
- "php" : " ^5.5 || ^7.0" ,
16
+ "php" : " ^5.6 || ^7.0" ,
17
17
"zendframework/zend-escaper" : " ^2.5" ,
18
18
"zendframework/zend-stdlib" : " ^2.7 || ^3.0"
19
19
},
20
20
"require-dev" : {
21
21
"zendframework/zend-servicemanager" : " ^2.7.5 || ^3.0.3" ,
22
- "phpunit/PHPUnit " : " ~4.0 " ,
22
+ "phpunit/phpunit " : " ^5.7.27 || ^6.5.8 || ^7.1.4 " ,
23
23
"zendframework/zend-coding-standard" : " ~1.0.0"
24
24
},
25
25
"suggest" : {
46
46
"cs-check" : " phpcs" ,
47
47
"cs-fix" : " phpcbf" ,
48
48
"test" : " phpunit --colors=always" ,
49
- "test-coverage" : " phpunit --colors=always --coverage-clover clover.xml" ,
50
- "upload-coverage" : " coveralls -v"
49
+ "test-coverage" : " phpunit --colors=always --coverage-clover clover.xml"
51
50
}
52
51
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" ./ vendor/phpunit/phpunit/phpunit.xsd"
4
- bootstrap =" ./test/bootstrap .php"
3
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
4
+ bootstrap =" vendor/autoload .php"
5
5
colors =" true" >
6
6
<testsuites >
7
7
<testsuite name =" zend-tag Test Suite" >
8
- <directory >./test/ </directory >
8
+ <directory >./test</directory >
9
9
</testsuite >
10
10
</testsuites >
11
11
12
- <groups >
13
- <exclude >
14
- <group >disable</group >
15
- </exclude >
16
- </groups >
17
-
18
12
<filter >
19
- <whitelist addUncoveredFilesFromWhitelist =" true" >
13
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
20
14
<directory suffix =" .php" >./src</directory >
21
15
</whitelist >
22
16
</filter >
23
-
24
- <php >
25
- <ini name =" date.timezone" value =" UTC" />
26
-
27
- <!-- OB_ENABLED should be enabled for some tests to check if all
28
- functionality works as expected. Such tests include those for
29
- Zend\Soap and Zend\Session, which require that headers not be sent
30
- in order to work. -->
31
- <env name =" TESTS_ZEND_OB_ENABLED" value =" false" />
32
-
33
- </php >
34
17
</phpunit >
Original file line number Diff line number Diff line change 10
10
namespace ZendTest \Tag \Cloud ;
11
11
12
12
use ArrayObject ;
13
+ use PHPUnit \Framework \TestCase ;
13
14
use stdClass ;
14
15
use Zend \ServiceManager \ServiceManager ;
15
16
use Zend \ServiceManager \Config as SMConfig ;
26
27
* @group Zend_Tag
27
28
* @group Zend_Tag_Cloud
28
29
*/
29
- class CloudTest extends \PHPUnit_Framework_TestCase
30
+ class CloudTest extends TestCase
30
31
{
31
32
public function testGetAndSetItemList ()
32
33
{
Original file line number Diff line number Diff line change 8
8
*/
9
9
namespace ZendTest \ServiceManager ;
10
10
11
- use PHPUnit_Framework_TestCase as TestCase ;
11
+ use PHPUnit \ Framework \ TestCase ;
12
12
use Zend \ServiceManager \ServiceManager ;
13
13
use Zend \Tag \Cloud \DecoratorPluginManager ;
14
14
use Zend \Tag \Cloud \Decorator \DecoratorInterface ;
Original file line number Diff line number Diff line change 10
10
namespace ZendTest \Tag \Cloud \Decorator ;
11
11
12
12
use ArrayObject ;
13
+ use PHPUnit \Framework \TestCase ;
13
14
use Zend \Tag \Cloud \Decorator ;
14
15
15
16
/**
16
17
* @group Zend_Tag
17
18
* @group Zend_Tag_Cloud
18
19
*/
19
- class HtmlCloudTest extends \PHPUnit_Framework_TestCase
20
+ class HtmlCloudTest extends TestCase
20
21
{
21
22
public function testDefaultOutput ()
22
23
{
Original file line number Diff line number Diff line change 10
10
namespace ZendTest \Tag \Cloud \Decorator ;
11
11
12
12
use ArrayObject ;
13
+ use PHPUnit \Framework \TestCase ;
13
14
use Zend \Tag ;
14
15
use Zend \Tag \Cloud \Decorator ;
15
16
16
17
/**
17
18
* @group Zend_Tag
18
19
* @group Zend_Tag_Cloud
19
20
*/
20
- class HtmlTagTest extends \PHPUnit_Framework_TestCase
21
+ class HtmlTagTest extends TestCase
21
22
{
22
23
public function testDefaultOutput ()
23
24
{
Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \Tag ;
11
11
12
+ use PHPUnit \Framework \TestCase ;
12
13
use Zend \Tag ;
13
14
14
15
/**
15
16
* @group Zend_Tag
16
17
*/
17
- class ItemListTest extends \PHPUnit_Framework_TestCase
18
+ class ItemListTest extends TestCase
18
19
{
19
20
public function testArrayAccessAndCount ()
20
21
{
Original file line number Diff line number Diff line change 10
10
namespace ZendTest \Tag ;
11
11
12
12
use ArrayObject ;
13
+ use PHPUnit \Framework \TestCase ;
13
14
use Zend \Tag ;
14
15
15
16
/**
16
17
* @group Zend_Tag
17
18
*/
18
- class ItemTest extends \PHPUnit_Framework_TestCase
19
+ class ItemTest extends TestCase
19
20
{
20
21
public function testConstructor ()
21
22
{
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments