Phalcon\Test\Unit\Forms\FormTest::testCount PHP Метод

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

public testCount ( )
    public function testCount()
    {
        $this->specify("Form::count does not return the correct number", function () {
            $form = new Form();
            $form->add(new Text("name"));
            $form->add(new Text("telephone"));
            expect($form)->count(2);
            expect($form->count())->equals(2);
        });
    }