Phalcon\Test\Unit\ConfigTest::testConfigCount PHP Method

testConfigCount() public method

Tests implementing of Countable interface
Since: 2014-11-03
Author: 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);
        });
    }