public function testGetLocaleWithLocaleSwitcherNotSet() { $this->
expectException(\RuntimeException::
class);
$this->
expectExceptionMessage('The "app.locale" variable is not available.'
);
$this->appVariable->
getLocale();
} public function testGetFlashesWithNoRequest() { $this->
setRequestStack(null
);
$this->
assertEquals([],
$this->appVariable->
getFlashes());
} /**
* @runInSeparateProcess
*/
public function testGetFlashesWithNoSessionStarted() { $flashMessages =
$this->
setFlashMessages(false
);
$this->
assertEquals($flashMessages,
$this->appVariable->
getFlashes());
}