We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f9dc69 commit 402ff3fCopy full SHA for 402ff3f
1 file changed
tests/test-cli.php
@@ -68,10 +68,12 @@ function test_string_cache() {
68
'decolorized' => $string,
69
);
70
71
+ $real_cache = \cli\Colors::getStringCache();
72
+
73
// Test that the cache value exists
- $this->assertTrue( isset( \cli\Colors::getStringCache()[ md5( $string_with_color ) ] ) );
74
+ $this->assertTrue( isset( $real_cache[ md5( $string_with_color ) ] ) );
75
76
// Test that the cache value is correctly set
- $this->assertEquals( $test_cache, \cli\Colors::getStringCache()[ md5( $string_with_color ) ] );
77
+ $this->assertEquals( $test_cache, $real_cache[ md5( $string_with_color ) ] );
78
}
79
0 commit comments