Beispiel #1
0
 public function testGetBuiltInCommands()
 {
     $instance = new Interpreter();
     $actual = $instance->getBuiltInCommands();
     $expected = ['clear' => 'Pry\\Command\\Clear', 'help' => 'Pry\\Command\\Help', 'show-classes' => 'Pry\\Command\\ShowClasses', 'show-constants' => 'Pry\\Command\\ShowConstants', 'show-functions' => 'Pry\\Command\\ShowFunctions', 'show-vars' => 'Pry\\Command\\ShowVars', 'quit' => 'Pry\\Command\\Quit', 'trace' => 'Pry\\Command\\Trace', 'whereami' => 'Pry\\Command\\WhereAmI'];
     $this->assertEquals($expected, $actual);
 }