Elgg\Cache\Pool\StashWrapperTest::testGetComplainsAboutInvalidKeys PHP Method

testGetComplainsAboutInvalidKeys() public method

    public function testGetComplainsAboutInvalidKeys($key)
    {
        $pool = StashWrapper::createEphemeral();
        $this->setExpectedException('PHPUnit_Framework_Error_Warning', 'assert');
        $pool->get($key, function () {
            return 'foo';
        });
    }