Browse Source

Add a simple BC test.

dereuromark 9 years ago
parent
commit
bd631672b6
1 changed files with 11 additions and 0 deletions
  1. 11 0
      tests/TestCase/Core/StaticConfigTraitTest.php

+ 11 - 0
tests/TestCase/Core/StaticConfigTraitTest.php

@@ -453,4 +453,15 @@ class StaticConfigTraitTest extends TestCase
         $result = TestLogStaticConfig::dsnClassMap(['my' => 'Special\OtherLog']);
         $this->assertEquals($expected, $result, "Should be possible to add to the map");
     }
+
+    /**
+     * Tests that former handling of integer keys coming in from PHP internal conversions
+     * won't break in 3.4.
+     *
+     * @return void
+     */
+    public function testConfigBC() {
+        $result = TestLogStaticConfig::config(404);
+        $this->assertNull($result);
+    }
 }