aliakbarmotallebi / TDD_Testing_Project

test cases are developed to specify and validate what the code (Test Driven Development (TDD)? Tutorial with Example)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Driven Development (TDD) Example

The simple concept of TDD is to write and correct the failed tests before writing new code (before development).

Usage

git clone TDD_Testing_Project

compoer install

php ./vendor/bin/phpunit

Pass Example of TDD :

  {
    "aricle": [
      {
        "title" : "Mens Cotton Jacket",
        "slug"  : "mens-cotton-jacket"
      },
      {
        "title" : "Mens Casual Premium Slim Fit T-Shirts ",
        "slug"  : "mens-casual-premium-slim-fit-tshirts"
      },
      {
        "title" : "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops",
        "slug"  : "fjallraven-foldsack-no-1-backpack-fits-15-laptops"
      },
      {
        "title" : "SanDisk SSD PLUS 1TB Internal SSD - SATA III 6 Gb/s",
        "slug"  : "sandisk-ssd-plus-1tb-internal-ssd-sata-iii-6-gbs"
      }
    ]
  }

Contributing

For major changes

About

test cases are developed to specify and validate what the code (Test Driven Development (TDD)? Tutorial with Example)


Languages

Language:PHP 100.0%