rename test
This commit is contained in:
parent
a01d6583d3
commit
8495eca1a4
@ -56,7 +56,7 @@ class DefaultEntityListenerResolver implements EntityListenerResolver
|
|||||||
public function register($object)
|
public function register($object)
|
||||||
{
|
{
|
||||||
if ( ! is_object($object)) {
|
if ( ! is_object($object)) {
|
||||||
throw new \InvalidArgumentException(sprintf('An object was expected, but got "%s.', gettype($object)));
|
throw new \InvalidArgumentException(sprintf('An object was expected, but got "%s".', gettype($object)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->instances[get_class($object)] = $object;
|
$this->instances[get_class($object)] = $object;
|
||||||
|
@ -9,7 +9,7 @@ require_once __DIR__ . '/../../TestInit.php';
|
|||||||
/**
|
/**
|
||||||
* @group DDC-1955
|
* @group DDC-1955
|
||||||
*/
|
*/
|
||||||
class ListenerResolverTest extends \Doctrine\Tests\OrmTestCase
|
class EntityListenerResolverTest extends \Doctrine\Tests\OrmTestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -90,7 +90,7 @@ class ListenerResolverTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException InvalidArgumentException
|
* @expectedException InvalidArgumentException
|
||||||
* @expectedExceptionMessage An object was expected, but got "string.
|
* @expectedExceptionMessage An object was expected, but got "string".
|
||||||
*/
|
*/
|
||||||
public function testRegisterStringException()
|
public function testRegisterStringException()
|
||||||
{
|
{
|
Loading…
x
Reference in New Issue
Block a user