2017 © Pedro Peláez
 

project phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

image

codeception/phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

  • Saturday, April 8, 2017
  • by davert
  • Repository
  • 17 Watchers
  • 30 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Phalcon Demo Application

Build Status, (*1)

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., (*2)

Please write us if you have any feedback., (*3)

Thanks., (*4)

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., (*5)

Get Started

Requirements

Installation

Using Composer, you can create a new project, write this code on your terminal:, (*6)

composer create-project codeception/phalcon-demo --prefer-dist <folder name>

After running this command, there should be an output, similar below:, (*7)

Installing codeception/phalcon-demo (version)
  - Installing codeception/phalcon-demo (version)

Created project in <folder name>
Loading composer repositories with package information
Updating dependencies (including require-dev)

...
...
...

Writing lock file
Generating autoload files
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? y

The Git way

Another way to fetch project by using git clone:, (*8)

First you need to clone this repository:, (*9)

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

Install composer in a common location or in your project:, (*10)

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

Then install dependencies:, (*11)

php composer.phar install

Setup Database

A MySQL database is also bundled in this project. The connection to the database is required for several tests. You'll need to create the database and initialize schema., (*12)

You can create a database as follows:, (*13)

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

then initialize schema:, (*14)

cat schemas/phalcon_demo.sql | mysql -u root phalcon_demo

Note:, (*15)

For these tests we use the user root with password as password. You may need to change this in tests/codeception.yml. You can override application config by creating app/config/config.ini.dev (already gitignored)., (*16)

Tests

Phalcon Demo Application uses Codeception functional, acceptance and unit tests., (*17)

First you need to re-generate base classes for all suites:, (*18)

vendor/bin/codecept build

You can execute all test with run command:, (*19)

vendor/bin/codecept run

# OR detailed output
vendor/bin/codecept run --debug

Read more about the installation and configuration of Codeception:, (*20)

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., (*21)

Functional Tests

Demonstrates testing of CRUD application with:, (*22)

Contributing

See [CONTRIBUTING.md][15], (*23)

License

Phalcon Demo Application is open-sourced software licensed under the [New BSD License][16].
© 2012 - 2020 Phalcon Framework Team and contributors
© 2015 - 2020 Codeception Team and contributors, (*24)

The Versions

08/04 2017

dev-master

9999999-dev https://github.com/Codeception/phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-phalcon >=2.0.9

 

The Development Requires

demo codeception phalcon

08/04 2017

dev-develop

dev-develop https://github.com/Codeception/phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-phalcon >=2.0.9

 

The Development Requires

demo codeception phalcon

17/10 2016

v1.0.1

1.0.1.0 https://github.com/Codeception/phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-phalcon >=2.0.9

 

The Development Requires

demo codeception phalcon

16/10 2016

v1.0.0

1.0.0.0 https://github.com/Codeception/phalcon-demo

Phalcon Demo Application to demonstrate basics of Codeception testing.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-phalcon >=2.0.9

 

The Development Requires

demo codeception phalcon