lithium\tests\cases\action\RequestTest::testDetectWithArray PHP Метод

testDetectWithArray() публичный Метод

public testDetectWithArray ( )
    public function testDetectWithArray()
    {
        $request = new Request();
        $request->detect(array('cool' => function ($self) {
            return true;
        }));
        $result = $request->is('cool');
        $this->assertTrue($result);
    }
RequestTest