示例#1
0
 /**
  *
  */
 function test_variable_order()
 {
     $request = new Request([Arg::PARAMS => ['foo' => 'bar'], Arg::ARGS => ['foo' => 'baz', 'bat' => 'bar'], Arg::DATA => ['foo' => 'bat', 'bat' => 'baz', 'foobar' => 'bar']]);
     $this->assertEquals('bar', $request->variable('foo'));
     $this->assertEquals('bar', $request->variable('bat'));
     $this->assertEquals('bar', $request->variable('foobar'));
 }