Skip to content

Commit

Permalink
Using more generic 'sh' code highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Mar 8, 2012
1 parent 3f424cf commit 92e93c5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ To run tests:
- Execute PHPUnit, providing a path to a component directory for which
you wish to run tests, or a specific test class file.

```bash
```sh
% phpunit ZendTest/Application
% phpunit ZendTest/Application/Resource/CacheManagerTest.php
```

- You may also provide the `--group` switch; in such cases, provide the
top-level component name:

```bash
```sh
% phpunit --group Zend_Application
```
This will likely lead to errors, so it's usually best to specify a
specific component in which to run test:
```bash
```sh
% phpunit --group ZF-XYZ Zend/Application
```
You can turn on conditional tests with the TestConfiguration.php file.
Expand Down
30 changes: 15 additions & 15 deletions README-GIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ github or other public site, or setup/use your own repository.
3. Clone your fork locally and enter it (use your own GitHub username
in the statement below)

```bash
```sh
% git clone [email protected]:<username>/zf2.git
% cd zf2
```

4. Configure git to use the email address with which you are registered
in JIRA:

```bash
```sh
% git config user.email <your email address>
```

5. Add a remote to the canonical ZF repository, so you can keep your fork
up-to-date:

```bash
```sh
% git remote add zf2 https://github.com/zendframework/zf2.git
% git fetch zf2
```
Expand All @@ -57,40 +57,40 @@ repository.

1. Create a new repository

```bash
```sh
% git init
```

2. Configure git to use the email address with which you are registered
in JIRA:

```bash
```sh
% git config user.email <your email address>
```

3. Add an "origin" remote pointing to your gitosis/gitolite repo:

```bash
```sh
% git remote add origin git://yourdomain/yourrepo.git
```

4. Add a remote for the ZF repository and fetch it

```bash
```sh
% git remote add zf2 https://github.com/zendframework/zf2.git
% git fetch zf2
```

5. Create a new branch for the ZF repository (named "zf/master" here)

```bash
```sh
% git branch -b zf/master zf2/master
```

6. Create your master branch off the ZF branch, and push to your
repository

```bash
```sh
% git branch -b master
% git push origin HEAD:master
```
Expand All @@ -103,7 +103,7 @@ added a remote to the Zend Framework repository, which allows you to do
the following:


```bash
```sh
% git checkout master
% git pull zf2 master
- OPTIONALLY, to keep your remote up-to-date -
Expand All @@ -128,18 +128,18 @@ A typical work flow will then consist of the following:
The mechanics of this process are actually quite trivial. Below, we will
create a branch for fixing an issue in the tracker.

```bash
```sh
% git checkout -b zf9295
Switched to a new branch 'zf9295'
```
... do some work ...

```bash
```sh
% git commit
```
... write your log message ...

```bash
```sh
% git push origin HEAD:zf9295
Counting objects: 38, done.
Delta compression using up to 2 threads.
Expand Down Expand Up @@ -179,13 +179,13 @@ repository, we suggest doing some cleanup of these branches.
- Local branch cleanup
```bash
```sh
% git branch -d <branchname>
```
- Remote branch removal
```bash
```sh
% git push origin :<branchname>
```
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ prepare for Release Candidate status.
- JSON and YAML readers removed until beta4
- New API:

```
```php
$xml = new Zend\Config\Reader\Xml();
$config = new Zend\Config\Config($xml->fromFile($filename);
```
or:

```
```php
$xml = new Zend\Config\Reader\Xml();
$config = $xml->fromFile($filename, true);
```
Expand Down

0 comments on commit 92e93c5

Please sign in to comment.