Skip to content

Commit 62bb0e3

Browse files
committed
main file changed
1 parent 1893f25 commit 62bb0e3

File tree

193 files changed

+737
-0
lines changed

Some content is hidden

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

193 files changed

+737
-0
lines changed

_includes/index.markdown

+5

_site/12-28-2011/index.html

+249
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
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> Codeception - BDD-style PHP testing framework Collection of symfony framework tools - Symfohub: useful libs for symfony frameworks</title>
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+
<h1>Codeception</h1>
40+
41+
<p>Codeception is new PHP full-stack testing framework.
42+
Inspired by BDD, it provides you absolutely new way for writing acceptance, functional and even unit tests.
43+
Powered by PHPUnit 3.6.</p>
44+
45+
<p><a href="http://travis-ci.org/Codeception/codeception"><img src="https://secure.travis-ci.org/Codeception/Codeception.png?branch=master" alt="Build Status" /></a></p>
46+
47+
<h3>In a Glance</h3>
48+
49+
<p>Describe what you test and how you test it. Use PHP to write descriptions faster.</p>
50+
51+
<p>Run tests and see what actions were taken and what results were seen.</p>
52+
53+
<h4>Sample acceptance test</h4>
54+
55+
<p>``` php
56+
&lt;?php</p>
57+
58+
<p>$I = new TestGuy($scenario);
59+
$I->wantTo('create wiki page');
60+
$I->amOnPage('/');
61+
$I->click('Pages');
62+
$I->click('New');
63+
$I->see('New Page');
64+
$I->submitForm('#pageForm', array('page' => array(</p>
65+
66+
<pre><code>'title' =&gt; 'Tree of Life Movie Review',
67+
'body' =&gt; 'Next time don\'t let Hollywood create arthouse =) '
68+
</code></pre>
69+
70+
<p>)));
71+
$I->see('page created'); // notice generated
72+
$I->see('Tree of Life Movie Review','h1'); // head of page of is our title
73+
$I->seeInCurrentUrl('pages/tree-of-life-mobie-review'); // slug is generated
74+
$I->seeInDatabase('pages', array('title' => 'Tree of Life Movie Review')); // data is stored in database
75+
?>
76+
```
77+
Ok, as for unit test similar approach may seem weired, but...
78+
Take a look at this:</p>
79+
80+
<h4>Sample unit test</h4>
81+
82+
<p>``` php
83+
&lt;?php
84+
class UserControllerCest {</p>
85+
86+
<pre><code>public $class = 'UserController';
87+
88+
public function createAction(CodeGuy $I)
89+
{
90+
$I-&gt;haveFakeClass($userController = Stub::make('UserController'));
91+
$I-&gt;executeTestedMethodOn($userController, array('username' =&gt; 'MilesDavis', 'email' =&gt; '[email protected]'))
92+
-&gt;seeResultEquals(true)
93+
-&gt;seeMethodInvoked($userController, 'renderHtml')
94+
-&gt;seeInDabatase('users', array('username' =&gt; 'MilesDavis'));
95+
}
96+
</code></pre>
97+
98+
<p>}
99+
?></p>
100+
101+
<p>```</p>
102+
103+
<p>Anyway, If you don't really like writing unit tests in DSL, Codeceptance can run PHPUnit tests natively.</p>
104+
105+
<h2>Documentation</h2>
106+
107+
<p><a href="https://github.com/Codeception/Codeception/tree/master/docs">Documentation on Github</a></p>
108+
109+
<p>Documentation is currently bounded with project. Look for it in 'docs' directory.</p>
110+
111+
<h2>Installation</h2>
112+
113+
<h3>PEAR</h3>
114+
115+
<p>Install latest PEAR package from GitHub:</p>
116+
117+
<p><code>
118+
pear channel-discover codeception.github.com/pear
119+
pear install codeception/Codeception
120+
</code></p>
121+
122+
<h3>Phar</h3>
123+
124+
<p>Download <a href="https://github.com/Codeception/Codeception/raw/master/package/codecept.phar">codecept.phar</a></p>
125+
126+
<p>Copy it into your project.
127+
Run CLI utility:</p>
128+
129+
<p><code>
130+
php codecept.phar
131+
</code></p>
132+
133+
<h2>Getting Started</h2>
134+
135+
<p>If you sucessfully installed Codeception, run this commands:</p>
136+
137+
<p><code>
138+
codecept install
139+
</code></p>
140+
141+
<p>this will install all dependency tools like PHPUnit and Mink</p>
142+
143+
<p><code>
144+
codecept bootstrap
145+
</code></p>
146+
147+
<p>this will create default directory structure and default test suites</p>
148+
149+
<p><code>
150+
codecept build
151+
</code></p>
152+
153+
<p>This will generate Guy-classes, in order to make autocomplete works.</p>
154+
155+
<p>See Documentation for more information.</p>
156+
157+
<h3>License</h3>
158+
159+
<p>MIT</p>
160+
161+
<p>(c) Michael Bodnarchuk "Davert"
162+
2011</p>
163+
164+
</div>
165+
</div>
166+
<div class="sidebar">
167+
<div class="inner">
168+
</div>
169+
</div>
170+
</div>
171+
<div id="root_footer"></div>
172+
</div>
173+
174+
<div id="footer">
175+
<div class="inner">
176+
177+
<div class="col">
178+
<div class="footnote">
179+
<h4>Related links</h4>
180+
<h4>Powered by GitHub</h4>
181+
182+
<div class="small">
183+
Works with Jakyll and Github.
184+
</div>
185+
</div>
186+
187+
</div>
188+
<div class="col">
189+
<div class="footnote">
190+
191+
<h4>Codeception is...</h4>
192+
193+
<div class="small">
194+
195+
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.
196+
197+
</div>
198+
199+
</div>
200+
</div>
201+
<div class="col last">
202+
<div class="footnote">
203+
<h4>Credits</h4>
204+
205+
<div class="small">
206+
Symfohub was created by <a href="https://github.com/DavertMik" target="_blank">Davert</a>.
207+
<a href="http://dryicons.com">DryIcons</a> icons were used in design.
208+
</div>
209+
</div>
210+
</div>
211+
212+
</div>
213+
</div>
214+
<script type="text/javascript">
215+
var disqus_shortname = 'symfohub';
216+
(function () {
217+
var s = document.createElement('script'); s.async = true;
218+
s.src = 'http://disqus.com/forums/symfohub/count.js';
219+
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
220+
}());
221+
</script>
222+
223+
<script type="text/javascript">
224+
var uservoiceOptions = {
225+
/* required */
226+
key: 'symfohub',
227+
host: 'symfohub.uservoice.com',
228+
forum: '96525',
229+
showTab: true,
230+
/* optional */
231+
alignment: 'left',
232+
background_color:'#656270',
233+
text_color: 'white',
234+
hover_color: '#06C',
235+
lang: 'en'
236+
};
237+
238+
function _loadUserVoice() {
239+
var s = document.createElement('script');
240+
s.setAttribute('type', 'text/javascript');
241+
s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js");
242+
document.getElementsByTagName('head')[0].appendChild(s);
243+
}
244+
_loadSuper = window.onload;
245+
window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
246+
</script>
247+
248+
</body>
249+
</html>

_site/CNAME

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

_site/css/screen.css

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

_site/css/syntax.css

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.highlight { background: #ffffff; }
2+
.highlight .c { color: #999988; font-style: italic } /* Comment */
3+
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
4+
.highlight .k { font-weight: bold } /* Keyword */
5+
.highlight .o { font-weight: bold } /* Operator */
6+
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
8+
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
9+
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
10+
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
11+
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
12+
.highlight .ge { font-style: italic } /* Generic.Emph */
13+
.highlight .gr { color: #aa0000 } /* Generic.Error */
14+
.highlight .gh { color: #999999 } /* Generic.Heading */
15+
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
16+
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
17+
.highlight .go { color: #888888 } /* Generic.Output */
18+
.highlight .gp { color: #555555 } /* Generic.Prompt */
19+
.highlight .gs { font-weight: bold } /* Generic.Strong */
20+
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
21+
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
22+
.highlight .kc { font-weight: bold } /* Keyword.Constant */
23+
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
24+
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
25+
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
26+
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
27+
.highlight .m { color: #009999 } /* Literal.Number */
28+
.highlight .s { color: #d14 } /* Literal.String */
29+
.highlight .na { color: #008080 } /* Name.Attribute */
30+
.highlight .nb { color: #0086B3 } /* Name.Builtin */
31+
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
32+
.highlight .no { color: #008080 } /* Name.Constant */
33+
.highlight .ni { color: #800080 } /* Name.Entity */
34+
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
35+
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
36+
.highlight .nn { color: #555555 } /* Name.Namespace */
37+
.highlight .nt { color: #000080 } /* Name.Tag */
38+
.highlight .nv { color: #008080 } /* Name.Variable */
39+
.highlight .ow { font-weight: bold } /* Operator.Word */
40+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
41+
.highlight .mf { color: #009999 } /* Literal.Number.Float */
42+
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
43+
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
44+
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
45+
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
46+
.highlight .sc { color: #d14 } /* Literal.String.Char */
47+
.highlight .sd { color: #d14 } /* Literal.String.Doc */
48+
.highlight .s2 { color: #d14 } /* Literal.String.Double */
49+
.highlight .se { color: #d14 } /* Literal.String.Escape */
50+
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
51+
.highlight .si { color: #d14 } /* Literal.String.Interpol */
52+
.highlight .sx { color: #d14 } /* Literal.String.Other */
53+
.highlight .sr { color: #009926 } /* Literal.String.Regex */
54+
.highlight .s1 { color: #d14 } /* Literal.String.Single */
55+
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
56+
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
57+
.highlight .vc { color: #008080 } /* Name.Variable.Class */
58+
.highlight .vg { color: #008080 } /* Name.Variable.Global */
59+
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
60+
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
291 Bytes
234 Bytes
285 Bytes
79 Bytes
52 Bytes
78 Bytes
52 Bytes
52 Bytes
80 Bytes
91 Bytes
91 Bytes
80 Bytes
76 Bytes
52 Bytes
76 Bytes
231 Bytes
230 Bytes
302 Bytes

_site/images/all-azure/tail-left.png

300 Bytes

_site/images/all-azure/tail-right.png

298 Bytes

_site/images/all-azure/tail-top.png

299 Bytes

_site/images/all-azure/top-left.png

286 Bytes

_site/images/all-azure/top-middle.png

234 Bytes

_site/images/all-azure/top-right.png

283 Bytes
291 Bytes
234 Bytes
285 Bytes
79 Bytes
52 Bytes
78 Bytes
52 Bytes
52 Bytes
80 Bytes
91 Bytes
91 Bytes
80 Bytes
76 Bytes
52 Bytes
76 Bytes
231 Bytes
230 Bytes
302 Bytes

_site/images/all-black/tail-left.png

300 Bytes

_site/images/all-black/tail-right.png

298 Bytes

_site/images/all-black/tail-top.png

299 Bytes

_site/images/all-black/top-left.png

286 Bytes

_site/images/all-black/top-middle.png

234 Bytes

_site/images/all-black/top-right.png

283 Bytes

_site/images/all-grey/bottom-left.png

291 Bytes
234 Bytes
285 Bytes
79 Bytes
52 Bytes
78 Bytes
52 Bytes
52 Bytes
80 Bytes
91 Bytes
91 Bytes

_site/images/all-grey/ie/tail-top.gif

80 Bytes

_site/images/all-grey/ie/top-left.gif

76 Bytes
52 Bytes
76 Bytes

_site/images/all-grey/middle-left.png

231 Bytes
230 Bytes

_site/images/all-grey/tail-bottom.png

302 Bytes

_site/images/all-grey/tail-left.png

300 Bytes

_site/images/all-grey/tail-right.png

298 Bytes

_site/images/all-grey/tail-top.png

299 Bytes

_site/images/all-grey/top-left.png

286 Bytes

_site/images/all-grey/top-middle.png

234 Bytes

_site/images/all-grey/top-right.png

283 Bytes
291 Bytes
234 Bytes
285 Bytes
79 Bytes
52 Bytes
78 Bytes
52 Bytes
52 Bytes
80 Bytes
91 Bytes
91 Bytes
80 Bytes
76 Bytes
52 Bytes
76 Bytes
231 Bytes
230 Bytes
302 Bytes

_site/images/all-violet/tail-left.png

300 Bytes
298 Bytes

_site/images/all-violet/tail-top.png

299 Bytes

_site/images/all-violet/top-left.png

286 Bytes
234 Bytes

_site/images/all-violet/top-right.png

283 Bytes

_site/images/azure/bottom-left.png

316 Bytes

_site/images/azure/bottom-middle.png

240 Bytes

_site/images/azure/bottom-right.png

311 Bytes

_site/images/azure/ie/bottom-left.gif

102 Bytes
52 Bytes
100 Bytes

_site/images/azure/ie/middle-left.gif

52 Bytes
52 Bytes

_site/images/azure/ie/tail-bottom.gif

89 Bytes

_site/images/azure/ie/tail-left.gif

96 Bytes

_site/images/azure/ie/tail-right.gif

97 Bytes

_site/images/azure/ie/tail-top.gif

87 Bytes

_site/images/azure/ie/top-left.gif

98 Bytes

_site/images/azure/ie/top-middle.gif

52 Bytes

_site/images/azure/ie/top-right.gif

100 Bytes

_site/images/azure/middle-left.png

235 Bytes

_site/images/azure/middle-right.png

234 Bytes

_site/images/azure/tail-bottom.png

315 Bytes

_site/images/azure/tail-left.png

307 Bytes

_site/images/azure/tail-right.png

304 Bytes

_site/images/azure/tail-top.png

315 Bytes

_site/images/azure/top-left.png

310 Bytes

_site/images/azure/top-middle.png

240 Bytes

_site/images/azure/top-right.png

308 Bytes

_site/images/black/bottom-left.png

316 Bytes

_site/images/black/bottom-middle.png

240 Bytes

_site/images/black/bottom-right.png

311 Bytes

_site/images/black/ie/bottom-left.gif

102 Bytes
52 Bytes
100 Bytes

_site/images/black/ie/middle-left.gif

52 Bytes
52 Bytes

_site/images/black/ie/tail-bottom.gif

89 Bytes

_site/images/black/ie/tail-left.gif

96 Bytes

_site/images/black/ie/tail-right.gif

97 Bytes

_site/images/black/ie/tail-top.gif

87 Bytes

_site/images/black/ie/top-left.gif

98 Bytes

_site/images/black/ie/top-middle.gif

52 Bytes

_site/images/black/ie/top-right.gif

100 Bytes

_site/images/black/middle-left.png

235 Bytes

_site/images/black/middle-right.png

234 Bytes

_site/images/black/tail-bottom.png

315 Bytes

_site/images/black/tail-left.png

307 Bytes

_site/images/black/tail-right.png

304 Bytes

_site/images/black/tail-top.png

315 Bytes

_site/images/black/top-left.png

310 Bytes

_site/images/black/top-middle.png

240 Bytes

_site/images/black/top-right.png

308 Bytes

_site/images/chart.png

565 Bytes

_site/images/comments.png

822 Bytes

_site/images/delete.png

1011 Bytes

_site/images/doctrine.png

3.31 KB

_site/images/favicon.png

1.45 KB

_site/images/footer_bg.png

1.1 KB

_site/images/footer_c.png

22.3 KB

_site/images/forks.png

1.22 KB

_site/images/github.jpeg

2.06 KB

_site/images/grid.png

+1

_site/images/head_bg.png

1.05 KB

_site/images/head_c.png

5.48 KB

_site/images/indicator.gif

1.52 KB

_site/images/logo.png

3.28 KB

_site/images/note.png

3.29 KB

_site/images/note_accept.png

3.41 KB

_site/images/orange_arrow_down.png

3.21 KB

_site/images/orange_arrow_up.png

3.25 KB

_site/images/promo.png

19.1 KB

_site/images/promo_button.png

1.83 KB

_site/images/propel.png

3.43 KB

_site/images/rss.png

4.95 KB

_site/images/search.png

236 Bytes

_site/images/sidebar.png

1.02 KB

_site/images/small_star.png

3.38 KB

_site/images/star-half.png

3.91 KB

_site/images/star-off.png

3.91 KB

_site/images/star-on.png

3.81 KB

_site/images/star.png

2.97 KB

_site/images/symfony.png

3.29 KB

_site/images/tab.png

1.36 KB

_site/images/tab_a.png

1.57 KB

_site/images/text_page.png

559 Bytes

_site/images/tinyTip-bottom.png

922 Bytes

_site/images/tinyTip-content.png

188 Bytes

_site/images/tinyTip-top.png

312 Bytes

_site/images/tinyTip.png

1.42 KB

_site/images/tipsy.gif

867 Bytes

_site/images/twitter.png

1.38 KB

_site/images/watchers.png

1.34 KB

_site/images/zip_file_download.png

771 Bytes

0 commit comments

Comments
 (0)