8000 GitHub - jtfeng/phalcon-demo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jtfeng/phalcon-demo

 
 

Repository files navigation

Phalcon Demo Application

Build Status

We use modified Phalcon INVO Application to demonstrate basics of Codeception testing. We expect to implement as many features as possible to showcase the framework and its potential.

Please write us if you have any feedback.

Thanks.

NOTE

The master branch will always contain the latest stable version. If you wish to check older versions or newer ones currently under development, please switch to the relevant branch.

Get Started

Requirements

Installation

First you need to clone this repository:

$ git clone git@github.com:Codeception/phalcon-demo.git

Install composer in a common location or in your project:

$ curl -s http://getcomposer.org/installer | php

Then install dependencies:

$ php composer.phar install

You'll need to create the database and initialize schema:

$ echo 'CREATE DATABASE phalcon_demo CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root
$ cat schemas/phalcon_demo.sql | mysql -u root phalcon_demo

Also you can override application config by creating app/config/config.ini.dev (already gitignored).

Tests

Phalcon Demo Application uses Codeception functional, acceptance and unit tests.

First you need to re-generate base classes for all suites:

$ vendor/bin/codecept build

You can execute all test with run command:

$ vendor/bin/codecept run
# OR
$ vendor/bin/codecept run --debug # Detailed output

Read more about the installation and configuration of Codeception:

Some tests require a connection to the database. For those you need to create a test database using MySQL:

$ echo 'CREATE DATABASE phalcon_demo CHARSET=utf8 COLLATE=utf8_unicode_ci' | mysql -u root

For these tests we use the user root without a password. You may need to change this in tests/codeception.yml and app/config/config.ini.dev files.

If you cannot run the tests, please refer to the .travis.yml file for more instructions how we test Phalcon Demo Application. For detailed information on our application environment setting refer to app/config/env.php file.

Functional Tests

Demonstrates testing of CRUD application with:

Contributing

See CONTRIBUTING.md

License

Phalcon Demo Application is open-sourced software licensed under the New BSD License.
© 2012 - 2016 Phalcon Framework Team and contributors
© 2015 Codeception Team and contributors

User/Functional/UserSteps.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 70.5%
  • Volt 27.9%
  • JavaScript 1.6%
0