Giter VIP home page Giter VIP logo

liesitoldmykids's Introduction

Simple app to help me learn better testing practices.

App build from a class with Chris Hartjes @grmpyprogrammer

    see;
        http://www.littlehart.net/atthekeyboard/
        http://grumpy-testing.com/
        http://grumpy-phpunit.com/
        https://leanpub.com/grumpy-testing

App concept:
    Lies I told my kids

    Plain PHP site

        homepage - paginated display of lies
        submit page
        admin - delete/edit users/lies

    Two tables
        1. lies
            LieMapper
            LieEntity

            uuid, date, description, userid, valid
        2. user
            UserMapper
            UserEntity

            uuid, email, role (general/admin)

    General users can:
        create lies
        edit lies that belong to them
        delete lies that belong to them

    Admin users
        create lies
        edit lies that belong to them
        delete lies that belong to them

    Mappers take DB connection parameter
        then return a collection of lie/user objects
        (allows for mocking, or dsn)


Scenarios:
    get 1 lie
    get all lies
    get all valid lies


HOMEWORK;  Chris to send the source code
    create an update method
    create a userEntity & userMapper
    defensio wrapper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.