public function testEnterLeaveAndCurrentScope()
 {
     $table = new SymbolTable();
     $this->assertEquals(TableScope::GLOBAL_SCOPE, $table->currentScope()->scope());
     $classScope = $this->prophesize('SensioLabs\\DeprecationDetector\\TypeGuessing\\SymbolTable\\TableScope');
     $classScope->scope()->willReturn(TableScope::CLASS_LIKE_SCOPE);
     $classScope = $classScope->reveal();
     $table->enterScope($classScope);
     $this->assertSame($classScope, $table->currentScope());
     $table->leaveScope();
     $this->assertEquals(TableScope::GLOBAL_SCOPE, $table->currentScope()->scope());
 }