Skip to content

Commit 94830d8

Browse files
committed
trying to run with jakyll
1 parent fdb8202 commit 94830d8

File tree

196 files changed

+509
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+509
-9
lines changed

Diff for: CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codeception.com

Diff for: CNAME~

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tom.preston-werner.com

Diff for: _config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
markdown: rdiscount
2+
pygments: true
3+
permalink: /:month-:day-:year/:title.html

Diff for: _includes/index.md

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
layout: default
3+
title: Codeception - BDD-style PHP testing framework
4+
---
5+
# Codeception
6+
7+
Codeception is new PHP full-stack testing framework.
8+
Inspired by BDD, it provides you absolutely new way for writing acceptance, functional and even unit tests.
9+
Powered by PHPUnit 3.6.
10+
11+
[![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=master)](http://travis-ci.org/Codeception/codeception)
12+
13+
### In a Glance
14+
15+
Describe what you test and how you test it. Use PHP to write descriptions faster.
16+
17+
Run tests and see what actions were taken and what results were seen.
18+
19+
#### Sample acceptance test
20+
21+
``` php
22+
<?php
23+
24+
$I = new TestGuy($scenario);
25+
$I->wantTo('create wiki page');
26+
$I->amOnPage('/');
27+
$I->click('Pages');
28+
$I->click('New');
29+
$I->see('New Page');
30+
$I->submitForm('#pageForm', array('page' => array(
31+
'title' => 'Tree of Life Movie Review',
32+
'body' => 'Next time don\'t let Hollywood create arthouse =) '
33+
)));
34+
$I->see('page created'); // notice generated
35+
$I->see('Tree of Life Movie Review','h1'); // head of page of is our title
36+
$I->seeInCurrentUrl('pages/tree-of-life-mobie-review'); // slug is generated
37+
$I->seeInDatabase('pages', array('title' => 'Tree of Life Movie Review')); // data is stored in database
38+
?>
39+
```
40+
Ok, as for unit test similar approach may seem weired, but...
41+
Take a look at this:
42+
43+
#### Sample unit test
44+
45+
``` php
46+
<?php
47+
class UserControllerCest {
48+
public $class = 'UserController';
49+
50+
public function createAction(CodeGuy $I)
51+
{
52+
$I->haveFakeClass($userController = Stub::make('UserController'));
53+
$I->executeTestedMethodOn($userController, array('username' => 'MilesDavis', 'email' => '[email protected]'))
54+
->seeResultEquals(true)
55+
->seeMethodInvoked($userController, 'renderHtml')
56+
->seeInDabatase('users', array('username' => 'MilesDavis'));
57+
}
58+
}
59+
?>
60+
61+
```
62+
63+
Anyway, If you don't really like writing unit tests in DSL, Codeceptance can run PHPUnit tests natively.
64+
65+
## Documentation
66+
67+
[Documentation on Github](https://github.com/Codeception/Codeception/tree/master/docs)
68+
69+
Documentation is currently bounded with project. Look for it in 'docs' directory.
70+
71+
## Installation
72+
73+
### PEAR
74+
Install latest PEAR package from GitHub:
75+
76+
```
77+
pear channel-discover codeception.github.com/pear
78+
pear install codeception/Codeception
79+
```
80+
81+
### Phar
82+
83+
Download [codecept.phar](https://github.com/Codeception/Codeception/raw/master/package/codecept.phar)
84+
85+
Copy it into your project.
86+
Run CLI utility:
87+
88+
```
89+
php codecept.phar
90+
```
91+
92+
## Getting Started
93+
94+
If you sucessfully installed Codeception, run this commands:
95+
96+
```
97+
codecept install
98+
```
99+
100+
this will install all dependency tools like PHPUnit and Mink
101+
102+
```
103+
codecept bootstrap
104+
```
105+
106+
this will create default directory structure and default test suites
107+
108+
```
109+
codecept build
110+
```
111+
112+
This will generate Guy-classes, in order to make autocomplete works.
113+
114+
See Documentation for more information.
115+
116+
### License
117+
MIT
118+
119+
(c) Michael Bodnarchuk "Davert"
120+
2011

Diff for: _layouts/default.html

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<meta name="title" content="Codeception - BDD-style PHP testing framework" />
6+
<title> {% if page.title %} {{ page.title }} Collection of symfony framework tools - Symfohub: useful libs for symfony frameworks</title> {% endif %}
7+
<link rel="shortcut icon" href="/images/favicon.png" />
8+
<link rel="stylesheet" type="text/css" media="screen" href="/css/screen.css" />
9+
<link rel="stylesheet" type="text/css" media="screen" href="/css/twilight.css" />
10+
</head>
11+
<body>
12+
<div id="root">
13+
14+
<div class="head">
15+
16+
<div class="nav">
17+
<a class="logo" href="/" alt="Codeception">Codeception
18+
</a>
19+
<ul>
20+
<li><a class="" href="/repository">REPOSITORIES</a></li>
21+
22+
</ul>
23+
</div>
24+
25+
</div>
26+
27+
<div class="layout">
28+
<div class="content">
29+
<div class="promo">
30+
<div class="button">
31+
<em>Start testing pragmatically</em>
32+
</div>
33+
<div class="disclaimer">
34+
Test your PHP applications with fun!
35+
</div>
36+
</div>
37+
38+
<div>
39+
{{ content }}
40+
</div>
41+
</div>
42+
<div class="sidebar">
43+
<div class="inner">
44+
</div>
45+
</div>
46+
</div>
47+
<div id="root_footer"></div>
48+
</div>
49+
50+
<div id="footer">
51+
<div class="inner">
52+
53+
<div class="col">
54+
<div class="footnote">
55+
<h4>Related links</h4>
56+
<h4>Powered by GitHub</h4>
57+
58+
<div class="small">
59+
Works with Jakyll and Github.
60+
</div>
61+
</div>
62+
63+
</div>
64+
<div class="col">
65+
<div class="footnote">
66+
67+
<h4>Codeception is...</h4>
68+
69+
<div class="small">
70+
71+
Codeception is new PHP full-stack testing framework. Inspired by BDD, it provides you absolutely new way for writing acceptance, functional and even unit tests. Powered by PHPUnit 3.6.
72+
73+
</div>
74+
75+
</div>
76+
</div>
77+
<div class="col last">
78+
<div class="footnote">
79+
<h4>Credits</h4>
80+
81+
<div class="small">
82+
Symfohub was created by <a href="https://github.com/DavertMik" target="_blank">Davert</a>.
83+
<a href="http://dryicons.com">DryIcons</a> icons were used in design.
84+
</div>
85+
</div>
86+
</div>
87+
88+
</div>
89+
</div>
90+
<script type="text/javascript">
91+
var disqus_shortname = 'symfohub';
92+
(function () {
93+
var s = document.createElement('script'); s.async = true;
94+
s.src = 'http://disqus.com/forums/symfohub/count.js';
95+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
96+
}());
97+
</script>
98+
99+
<script type="text/javascript">
100+
var uservoiceOptions = {
101+
/* required */
102+
key: 'symfohub',
103+
host: 'symfohub.uservoice.com',
104+
forum: '96525',
105+
showTab: true,
106+
/* optional */
107+
alignment: 'left',
108+
background_color:'#656270',
109+
text_color: 'white',
110+
hover_color: '#06C',
111+
lang: 'en'
112+
};
113+
114+
function _loadUserVoice() {
115+
var s = document.createElement('script');
116+
s.setAttribute('type', 'text/javascript');
117+
s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");
118+
document.getElementsByTagName('head')[0].appendChild(s);
119+
}
120+
_loadSuper = window.onload;
121+
window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
122+
</script>
123+
124+
</body>
125+
</html>

Diff for: _layouts/post.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
<div id="post">
5+
{{ content }}
6+
</div>
7+
8+
<div id="related">
9+
<h2>Related Posts</h2>
10+
<ul class="posts">
11+
{% for post in site.related_posts limit:3 %}
12+
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>
13+
{% endfor %}
14+
</ul>
15+
</div>

Diff for: _posts/2011-12-28-index.md

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
layout: default
3+
title: Codeception - BDD-style PHP testing framework
4+
---
5+
# Codeception
6+
7+
Codeception is new PHP full-stack testing framework.
8+
Inspired by BDD, it provides you absolutely new way for writing acceptance, functional and even unit tests.
9+
Powered by PHPUnit 3.6.
10+
11+
[![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=master)](http://travis-ci.org/Codeception/codeception)
12+
13+
### In a Glance
14+
15+
Describe what you test and how you test it. Use PHP to write descriptions faster.
16+
17+
Run tests and see what actions were taken and what results were seen.
18+
19+
#### Sample acceptance test
20+
21+
``` php
22+
<?php
23+
24+
$I = new TestGuy($scenario);
25+
$I->wantTo('create wiki page');
26+
$I->amOnPage('/');
27+
$I->click('Pages');
28+
$I->click('New');
29+
$I->see('New Page');
30+
$I->submitForm('#pageForm', array('page' => array(
31+
'title' => 'Tree of Life Movie Review',
32+
'body' => 'Next time don\'t let Hollywood create arthouse =) '
33+
)));
34+
$I->see('page created'); // notice generated
35+
$I->see('Tree of Life Movie Review','h1'); // head of page of is our title
36+
$I->seeInCurrentUrl('pages/tree-of-life-mobie-review'); // slug is generated
37+
$I->seeInDatabase('pages', array('title' => 'Tree of Life Movie Review')); // data is stored in database
38+
?>
39+
```
40+
Ok, as for unit test similar approach may seem weired, but...
41+
Take a look at this:
42+
43+
#### Sample unit test
44+
45+
``` php
46+
<?php
47+
class UserControllerCest {
48+
public $class = 'UserController';
49+
50+
public function createAction(CodeGuy $I)
51+
{
52+
$I->haveFakeClass($userController = Stub::make('UserController'));
53+
$I->executeTestedMethodOn($userController, array('username' => 'MilesDavis', 'email' => '[email protected]'))
54+
->seeResultEquals(true)
55+
->seeMethodInvoked($userController, 'renderHtml')
56+
->seeInDabatase('users', array('username' => 'MilesDavis'));
57+
}
58+
}
59+
?>
60+
61+
```
62+
63+
Anyway, If you don't really like writing unit tests in DSL, Codeceptance can run PHPUnit tests natively.
64+
65+
## Documentation
66+
67+
[Documentation on Github](https://github.com/Codeception/Codeception/tree/master/docs)
68+
69+
Documentation is currently bounded with project. Look for it in 'docs' directory.
70+
71+
## Installation
72+
73+
### PEAR
74+
Install latest PEAR package from GitHub:
75+
76+
```
77+
pear channel-discover codeception.github.com/pear
78+
pear install codeception/Codeception
79+
```
80+
81+
### Phar
82+
83+
Download [codecept.phar](https://github.com/Codeception/Codeception/raw/master/package/codecept.phar)
84+
85+
Copy it into your project.
86+
Run CLI utility:
87+
88+
```
89+
php codecept.phar
90+
```
91+
92+
## Getting Started
93+
94+
If you sucessfully installed Codeception, run this commands:
95+
96+
```
97+
codecept install
98+
```
99+
100+
this will install all dependency tools like PHPUnit and Mink
101+
102+
```
103+
codecept bootstrap
104+
```
105+
106+
this will create default directory structure and default test suites
107+
108+
```
109+
codecept build
110+
```
111+
112+
This will generate Guy-classes, in order to make autocomplete works.
113+
114+
See Documentation for more information.
115+
116+
### License
117+
MIT
118+
119+
(c) Michael Bodnarchuk "Davert"
120+
2011

Diff for: css/screen.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)