Phalcon\Test\Unit\Mvc\CollectionTest::testShouldCountDocumentsInCollection PHP Метод

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

Tests Collection::count
С версии: 2016-03-13
Автор: Serghei Iakovlev ([email protected])
    public function testShouldCountDocumentsInCollection()
    {
        $this->specify("Collection::count does not return expected result", function () {
            expect(Songs::count())->equals(3);
            expect(Songs::count([['artist' => 'Massive Attack']]))->equals(2);
        });
    }