Phalcon\Test\Unit\Flash\SessionTest::testGetNonExistentType PHP Метод

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

Tests getMessages in case of non existent type request
С версии: 2016-07-03
Автор: Serghei Iakovlev ([email protected])
    public function testGetNonExistentType()
    {
        $this->specify('The getMessages() method does not return an empty array in case of non existent type request', function () {
            $flash = $this->getFlash();
            $flash->error('sample error');
            expect($flash->getMessages('success', false))->equals([]);
            verify_that(count($flash->getMessages()) === 1);
        });
    }