Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mihaeu/pw-blog
Exercises from our lectures about professional web development.
https://github.com/mihaeu/pw-blog
Last synced: 1 day ago
JSON representation
Exercises from our lectures about professional web development.
- Host: GitHub
- URL: https://github.com/mihaeu/pw-blog
- Owner: mihaeu
- Created: 2015-10-26T00:53:45.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2015-11-27T09:32:14.000Z (almost 9 years ago)
- Last Synced: 2024-10-20T08:33:36.008Z (24 days ago)
- Language: PHP
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog Exercise
## Getting started
Make sure you have PHP 7 installed and global composer:
```bash
git clone https://github.com/mihaeu/pw-blog
cd pw-blog
composer install
```## Tests
```bash
vendor/bin/phpunit --testdox
PHPUnit 5.0.9 by Sebastian Bergmann and contributors.Mihaeu\Blog\ArticleCollection
[x] Adds new articlesMihaeu\Blog\Article
[x] Reads headline
[x] Add tags to articleMihaeu\Blog\BlogRenderer
[x] Renders an article
[x] Renders many articlesMihaeu\Blog\Blog
[x] Normal user can not publish
[x] Owner can publish
[x] Author can publishMihaeu\Blog\Console
[x] Writes to standard outMihaeu\Blog\Email
[x] Accepts valid email
[x] Does not accept invalid emailMihaeu\Blog\TagCollection
[x] Adds new tags to collectionMihaeu\Blog\Tag
[x] Reads tagMihaeu\Blog\User
[x] Can publish with permission
[x] Can not publish by default
```