Beispiel #1
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory(
         'Zend\Mvc\Router\Http\Method',
         array(
             'verb' => 'Missing "verb" in options array'
         ),
         array(
             'verb' => 'get'
         )
     );
 }
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\TreeRouteStack', array(), array());
 }
Beispiel #3
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Scheme', array('scheme' => 'Missing "scheme" in options array'), array('scheme' => 'http'));
 }
Beispiel #4
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Regex', array('regex' => 'Missing "regex" in options array', 'spec' => 'Missing "spec" in options array'), array('regex' => '/foo', 'spec' => '/foo'));
 }
Beispiel #5
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Segment', array('route' => 'Missing "route" in options array'), array('route' => '/:foo[/:bar{-}]', 'constraints' => array('foo' => 'bar')));
 }
Beispiel #6
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\SimpleRouteStack', array(), array('route_broker' => new RouteBroker(), 'routes' => array(), 'default_params' => array()));
 }
Beispiel #7
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory(
         'Zend\Mvc\Router\Http\Query',
         array(),
         array()
     );
 }
Beispiel #8
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('\\Zend\\Mvc\\Router\\Http\\Part', array('route' => 'Missing "route" in options array', 'route_broker' => 'Missing "route_broker" in options array'), array('route' => new \Zend\Mvc\Router\Http\Literal('/foo'), 'route_broker' => new RouteBroker()));
 }
Beispiel #9
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Part', array('route' => 'Missing "route" in options array', 'route_plugins' => 'Missing "route_plugins" in options array'), array('route' => new \Zend\Mvc\Router\Http\Literal('/foo'), 'route_plugins' => new RoutePluginManager()));
 }
Beispiel #10
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Wildcard', array(), array());
 }
Beispiel #11
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Hostname', array('route' => 'Missing "route" in options array'), array('route' => 'example.com'));
 }
Beispiel #12
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Chain', array('routes' => 'Missing "routes" in options array', 'route_plugins' => 'Missing "route_plugins" in options array'), array('routes' => array(), 'route_plugins' => new RoutePluginManager()));
 }
Beispiel #13
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('\\Zend\\Mvc\\Router\\Http\\Literal', array('route' => 'Missing "route" in options array'), array('route' => '/foo'));
 }
 public function testFactory()
 {
     $this->markTestIncomplete("todo");
     $tester = new FactoryTester($this);
     $tester->testFactory('Linguo\\Library\\Mvc\\Router\\Http\\MultiLangSegment', ['route' => 'Missing "route" in options array'], ['route' => '/:foo[/:bar{-}]', 'constraints' => ['foo' => 'bar']]);
 }