Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Use PHPUnit v4.8.35 and namespaced TestCase #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ $result = $query->execute();
foreach ($result as $row) {
echo 'Author ', $row['key'], ' has written ', $row['value'], ' articles', "\n";
}

// Author Alice has written 1 articles
// Author Bob has written 2 articles
```
```
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "^4.8.35"
},
"autoload": {
"psr-0": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Doctrine/Tests/CouchDB/CouchDBClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Doctrine\CouchDB\CouchDBClient;
use Doctrine\CouchDB\HTTP\SocketClient;
use PHPUnit\Framework\TestCase;

class CouchDBClientTest extends \PHPUnit_Framework_TestCase
class CouchDBClientTest extends TestCase
{
public function testConstants()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Doctrine/Tests/CouchDB/CouchDBExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Doctrine\Tests\CouchDB;

use Doctrine\CouchDB\CouchDBException;
use PHPUnit\Framework\TestCase;

/**
* @covers \Doctrine\CouchDB\CouchDBException
*/
class CouchDBExceptionTest extends \PHPUnit_Framework_TestCase
class CouchDBExceptionTest extends TestCase
{
/**
* @dataProvider staticFactoryDataProvider
Expand Down
3 changes: 2 additions & 1 deletion tests/Doctrine/Tests/CouchDB/CouchDBFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Doctrine\CouchDB\CouchDBClient;
use Doctrine\CouchDB\HTTP\SocketClient;
use PHPUnit\Framework\TestCase;

abstract class CouchDBFunctionalTestCase extends \PHPUnit_Framework_TestCase
abstract class CouchDBFunctionalTestCase extends TestCase
{
private $httpClient = null;

Expand Down