@@ -29,9 +29,9 @@ |
||
| 29 | 29 | self::assertInstanceOf(LogicException::class, $exception); |
| 30 | 30 | self::assertInstanceOf(ExceptionInterface::class, $exception); |
| 31 | 31 | |
| 32 | - $expected = 'The given object ' . get_class($object) |
|
| 33 | - . '#' . spl_object_hash($object) . " is not designed to allow any undefined or inaccessible methods to be called.\n\n" |
|
| 34 | - . 'You tried to call a method called "methodName".' . "\n\n" |
|
| 32 | + $expected = 'The given object '.get_class($object) |
|
| 33 | + . '#'.spl_object_hash($object)." is not designed to allow any undefined or inaccessible methods to be called.\n\n" |
|
| 34 | + . 'You tried to call a method called "methodName".'."\n\n" |
|
| 35 | 35 | . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?'; |
| 36 | 36 | |
| 37 | 37 | self::assertSame($expected, $exception->getMessage()); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public static function fromAttemptedCall($object, string $method) : self |
| 24 | 24 | { |
| 25 | - if (! is_object($object)) { |
|
| 25 | + if (!is_object($object)) { |
|
| 26 | 26 | throw TypeError::fromNonObject($object); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | $this->expectException(NonCallableObject::class); |
| 22 | 22 | |
| 23 | - $object->undefinedMethod(); |
|
| 23 | + $object->undefinedMethod(); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function testCallPreventionIsFinal() : void |
@@ -26,9 +26,9 @@ |
||
| 26 | 26 | self::assertInstanceOf(LogicException::class, $exception); |
| 27 | 27 | self::assertInstanceOf(ExceptionInterface::class, $exception); |
| 28 | 28 | |
| 29 | - $expected = 'The given class ' . $class |
|
| 29 | + $expected = 'The given class '.$class |
|
| 30 | 30 | . " is not designed to allow any undefined or inaccessible static methods to be called.\n\n" |
| 31 | - . 'You tried to call a static method called "methodName".' . "\n\n" |
|
| 31 | + . 'You tried to call a static method called "methodName".'."\n\n" |
|
| 32 | 32 | . 'Perhaps you made a typo in the method name, or tried to call an inaccessible method?'; |
| 33 | 33 | |
| 34 | 34 | self::assertSame($expected, $exception->getMessage()); |