"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Tests/AppVariableTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

AppVariableTest.php  (phplist-3.4.5.tgz):AppVariableTest.php  (phplist-3.4.6.tgz)
skipping to change at line 117 skipping to change at line 117
} }
public function testGetUserWithNoToken() public function testGetUserWithNoToken()
{ {
$tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\A uthentication\Token\Storage\TokenStorageInterface')->getMock(); $tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\A uthentication\Token\Storage\TokenStorageInterface')->getMock();
$this->appVariable->setTokenStorage($tokenStorage); $this->appVariable->setTokenStorage($tokenStorage);
$this->assertNull($this->appVariable->getUser()); $this->assertNull($this->appVariable->getUser());
} }
/**
* @expectedException \RuntimeException
*/
public function testEnvironmentNotSet() public function testEnvironmentNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getEnvironment(); $this->appVariable->getEnvironment();
} }
/**
* @expectedException \RuntimeException
*/
public function testDebugNotSet() public function testDebugNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getDebug(); $this->appVariable->getDebug();
} }
/**
* @expectedException \RuntimeException
*/
public function testGetTokenWithTokenStorageNotSet() public function testGetTokenWithTokenStorageNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getToken(); $this->appVariable->getToken();
} }
/**
* @expectedException \RuntimeException
*/
public function testGetUserWithTokenStorageNotSet() public function testGetUserWithTokenStorageNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getUser(); $this->appVariable->getUser();
} }
/**
* @expectedException \RuntimeException
*/
public function testGetRequestWithRequestStackNotSet() public function testGetRequestWithRequestStackNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getRequest(); $this->appVariable->getRequest();
} }
/**
* @expectedException \RuntimeException
*/
public function testGetSessionWithRequestStackNotSet() public function testGetSessionWithRequestStackNotSet()
{ {
$this->expectException('RuntimeException');
$this->appVariable->getSession(); $this->appVariable->getSession();
} }
public function testGetFlashesWithNoRequest() public function testGetFlashesWithNoRequest()
{ {
$this->setRequestStack(null); $this->setRequestStack(null);
$this->assertEquals([], $this->appVariable->getFlashes()); $this->assertEquals([], $this->appVariable->getFlashes());
} }
 End of changes. 12 change blocks. 
18 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)