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

Lines changed: 5 additions & 0 deletions

_site/12-28-2011/index.html

Lines changed: 249 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
codeception.com

_site/css/screen.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_site/css/syntax.css

Lines changed: 60 additions & 0 deletions
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

0 commit comments

Comments
 (0)