コード例 #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
ファイル: SchemeTest.php プロジェクト: bradley-holt/zf2
 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
ファイル: SimpleTest.php プロジェクト: pnaq57/zf2demo
 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
ファイル: SimpleRouteStackTest.php プロジェクト: rikaix/zf2
 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
ファイル: PartTest.php プロジェクト: razvansividra/pnlzf2-1
 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
ファイル: WildcardTest.php プロジェクト: nieldm/zf2
 public function testFactory()
 {
     $tester = new FactoryTester($this);
     $tester->testFactory('Zend\\Mvc\\Router\\Http\\Wildcard', array(), array());
 }
コード例 #11
0
ファイル: HostnameTest.php プロジェクト: haoyanfei/zf2
 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
ファイル: ChainTest.php プロジェクト: rajanlamic/IntTest
 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
ファイル: LiteralTest.php プロジェクト: rikh42/zf2
 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']]);
 }