Elgg\ContextTest::testFailToSetEmptyContext PHP Method

testFailToSetEmptyContext() public method

    public function testFailToSetEmptyContext()
    {
        $context = new Context();
        $context->set("  ");
        $this->assertNull($context->peek());
        $this->assertNull($context->pop());
        $context->push("  ");
        $this->assertEquals("  ", $context->peek());
        $this->assertEquals("  ", $context->pop());
    }