Phalcon\Test\Unit\ConfigTest::testConfigCount PHP Метод

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

Tests implementing of Countable interface
С версии: 2014-11-03
Автор: Faruk Brbovic ([email protected])
public testConfigCount ( )
    public function testConfigCount()
    {
        $this->specify("Returns the count of properties set in the config", function () {
            $config = new Config(["controllersDir" => "../x/y/z", "modelsDir" => "../x/y/z"]);
            expect(count($config))->equals(2);
            expect($config->count())->equals(2);
        });
    }