Exemplo n.º 1
0
 public function testAppNameNotSetWhenMissingInConfig()
 {
     $this->moduleOptions->setApplicationName('');
     $this->client->expects($this->never())->method('setAppName');
     $routeMatch = class_exists(RouteMatch::class) ? new RouteMatch([]) : new RouteMatchV2([]);
     $this->event->setRouteMatch($routeMatch);
     $this->listener->onRequest($this->event);
 }
 public function testAppNameNotSetWhenMissingInConfig()
 {
     $this->moduleOptions->setApplicationName("");
     $this->client->expects($this->never())->method('setAppName');
     $routeMatch = new \Zend\Mvc\Router\RouteMatch(array());
     $this->event->setRouteMatch($routeMatch);
     $this->listener->onRequest($this->event);
 }
Exemplo n.º 3
0
 public function testSetApplicationName()
 {
     $this->assertEmpty($this->moduleOptions->getApplicationName());
     $this->moduleOptions->setApplicationName('foo');
     $this->assertEquals('foo', $this->moduleOptions->getApplicationName());
 }