示例#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'
         )
     );
 }
示例#2
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\TreeRouteStack', array(), array());
 }
示例#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'));
 }
示例#4
0
文件: RegexTest.php 项目: nieldm/zf2
 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'));
 }
示例#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')));
 }
示例#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()));
 }
示例#7
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory(
         'Zend\Mvc\Router\Http\Query',
         array(),
         array()
     );
 }
示例#8
0
文件: PartTest.php 项目: rikh42/zf2
 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()));
 }
示例#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()));
 }
示例#10
0
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Wildcard', array(), array());
 }
示例#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'));
 }
示例#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()));
 }
示例#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'));
 }
示例#14
0
 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']]);
 }