protected function createTestInstance(array $methods = array(), $name = 'name') { $command = $this->getMockForAbstractClass('Metabor\\Statemachine\\NamedCommand', array($name), '', true, true, true, $methods); return $command; }