Completed
Push — master ( ad1530...714f57 )
by Marco
13s queued 12s
created
tests/DontTest/Exception/NonGettableObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
         self::assertInstanceOf(LogicException::class, $exception);
29 29
         self::assertInstanceOf(ExceptionInterface::class, $exception);
30 30
 
31
-        $expected = 'The given object ' . get_class($object)
32
-            . '#' . spl_object_hash($object) . " is not designed to allow any undefined or inaccessible properties to be read from.\n\n"
33
-            . 'You tried to access a property called "propertyName".' . "\n\n"
31
+        $expected = 'The given object '.get_class($object)
32
+            . '#'.spl_object_hash($object)." is not designed to allow any undefined or inaccessible properties to be read from.\n\n"
33
+            . 'You tried to access a property called "propertyName".'."\n\n"
34 34
             . 'Perhaps you made a typo in the property name, or tried to access an inaccessible property?';
35 35
 
36 36
         self::assertSame($expected, $exception->getMessage());
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonCallableObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Dont/Exception/NonCallableObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/DontTest/Exception/NonStaticCallableClassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/DontTest/DontDeserialiseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function testWillThrowOnSerialisationAttempt($className) : void
25 25
     {
26 26
         $this->expectException(NonDeserialisableObject::class);
27
-        if($className === NonDeserialisableImplementingSerializable::class){
27
+        if ($className === NonDeserialisableImplementingSerializable::class) {
28 28
             unserialize(\sprintf('C:55:"DontTestAsset\NonDeserialisableImplementingSerializable":6:{a:0:{}}'));
29 29
         } else {
30 30
             unserialize(\sprintf('O:%d:"%s":0:{}', \strlen($className), $className));
Please login to merge, or discard this patch.