Fixed Twig example.

This commit is contained in:
Phil Sturgeon
2012-07-10 13:55:51 +01:00
parent d85db0292f
commit 58a92de0c8
2 changed files with 6 additions and 8 deletions

View File

@@ -41,13 +41,11 @@ When you come across documentation that states to run Composer as `php composer.
First, create a `composer.json` file in the same directory as `composer.phar`. Here's an example that lists [Twig][2] as a project dependency.
{% highlight json %}
{
"require": {
"twig/twig": "1.8.*"
}
}
{% endhighlight %}
{
"require": {
"twig/twig": "1.8.*"
}
}
Next, run this command from your project root directory.

View File

@@ -18,7 +18,7 @@ var_dump() in a test.php, which is no way to build an application - large or sma
The other use for unit tests is contributing to open source. If you can write a test that shows broken
functionality, then fix it, and show the test working, patches are much more likely to be accepted. If
you run a project who accepts pull requests, you should suggest this as a requirement for pull requests.
you run a project which accepts pull requests then you should suggest this as a requirement.
PHPUnit is the most popular and has become a de facto standard with its popular adoption amongst [PHP
frameworks][phpfws] and [Composer][composer] component developers, but there are a few alternatives around.