Skip to content

Commit

Permalink
Merge tag 'v2.5.1' into 2.5
Browse files Browse the repository at this point in the history
v2.5.1

Note: v2.5.1 had to be merged because the 2.5 branch had not its commits in it
  • Loading branch information
Ocramius committed Dec 4, 2015
2 parents 53b9649 + 0009b8f commit cce91bc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
language: php

sudo: false

cache:
directory:
- $HOME/.composer/cache

php:
- 5.3.3
- 5.3
Expand All @@ -8,7 +14,6 @@ php:
- 5.6
- 7.0
- hhvm
- hhvm-nightly

before_script:
- composer --prefer-source install
Expand All @@ -19,4 +24,3 @@ script:
matrix:
allow_failures:
- php: 7.0
- php: hhvm-nightly
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DefaultFileLocator implements FileLocator
* documents and operates in the specified operating mode.
*
* @param string|array $paths One or multiple paths where mapping documents can be found.
* @param string|null $fileExtension The file extension of mapping documents.
* @param string|null $fileExtension The file extension of mapping documents, usually prefixed with a dot.
*/
public function __construct($paths, $fileExtension = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Proxy/ProxyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ProxyGenerator
* Used to match very simple id methods that don't need
* to be decorated since the identifier is known.
*/
const PATTERN_MATCH_ID_METHOD = '((public\s)?(function\s{1,}%s\s?\(\)\s{1,})\s{0,}{\s{0,}return\s{0,}\$this->%s;\s{0,}})i';
const PATTERN_MATCH_ID_METHOD = '((public\s+)?(function\s+%s\s*\(\)\s*)\s*{\s*return\s*\$this->%s;\s*})i';

/**
* The namespace that contains all proxy classes.
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Version
/**
* Current Doctrine Version.
*/
const VERSION = '2.5.0-DEV';
const VERSION = '2.6.0-DEV';

/**
* Compares a Doctrine version with the current one.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Doctrine\Tests\Common\Persistence;

use \PHPUnit_Framework_MockObject_Generator;
use Doctrine\Common\Persistence\AbstractManagerRegistry;
use Doctrine\Tests\Common\Persistence\Mapping\TestClassMetadataFactory;
use Doctrine\Tests\DoctrineTestCase;
use PHPUnit_Framework_TestCase;

/**
* @groups DCOM-270
Expand Down Expand Up @@ -69,12 +69,12 @@ public function testGetManagerForInvalidAliasedClass()
}
}

class TestManager
class TestManager extends PHPUnit_Framework_TestCase
{
public function getMetadataFactory()
{
$driver = PHPUnit_Framework_MockObject_Generator::getMock('Doctrine\Common\Persistence\Mapping\Driver\MappingDriver');
$metadata = PHPUnit_Framework_MockObject_Generator::getMock('Doctrine\Common\Persistence\Mapping\ClassMetadata');
$driver = $this->getMock('Doctrine\Common\Persistence\Mapping\Driver\MappingDriver');
$metadata = $this->getMock('Doctrine\Common\Persistence\Mapping\ClassMetadata');

return new TestClassMetadataFactory($driver, $metadata);
}
Expand Down

0 comments on commit cce91bc

Please sign in to comment.