assertFalse( $ctx->enforced() ); $ctx->enforce(); $this->assertTrue( $ctx->enforced() ); $ctx->enforce(); $this->assertTrue( $ctx->enforced() ); $ctx->disable(); $this->assertFalse( $ctx->enforced() ); $ctx->disable(); $this->assertFalse( $ctx->enforced() ); $ctx->enforce(); $this->assertTrue( $ctx->enforced() ); $ctx->pop(); $this->assertFalse( $ctx->enforced() ); $ctx->pop(); $this->assertFalse( $ctx->enforced() ); $ctx->pop(); $this->assertTrue( $ctx->enforced() ); } }