Bir trello cardinin "To Do" listinden "Doing" listene olan zaman ile "Doing" listinden "Done" olan zmanin farki.
Proje composer kullaniyor Testler icin Behat kullaniyor
- PHP53, PHP54 or PHP55
brew install PHP55
- Composer
brew install josegonzalez/php/composer
- Behat
curl http://getcomposer.org/installer | php
php composer.phar install --prefer-source
Tests
bin/behat
- get card
- get actions of card
- find action where card moved from ToDo to Doing
action = {
type: 'updateCard',
data: {
listAfter": {
name: "Doing",
id: "4d5ea62fd76aa1136000001f"
},
listBefore: {
"name": "ToDo",
"id": "4e70ffc2fa8d7c21b92361df"
}
},
date: "2013-12-20T22:44:57.407Z"
}
- find action where card moved from Doing to Done
action = {
type: 'updateCard',
data: {
listAfter": {
name: "Done",
id: "4d5ea62fd76aa1136000001f"
},
listBefore: {
"name": "Doing",
"id": "4e70ffc2fa8d7c21b92361df"
}
},
date: "2013-12-20T22:44:57.407Z"
}
- get difference of time