Skip to content

Commit 19638f5

Browse files
authored
Merge pull request #2 from kenjis/update-readme
Add script to update README TOC
2 parents d77bd98 + 87e9c30 commit 19638f5

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@ Provides helper traits for PHPUnit.
77

88
## Table of Contents
99

10-
* [Requirements](#requirements)
11-
* [Installation](#installation)
12-
* [Usage](#usage)
13-
* [TestDouble](#testdouble)
14-
* [$this->getDouble()](#this-getdouble)
15-
* [$this->verifyInvoked()](#this-verifyinvoked)
16-
* [$this->verifyInvokedOnce()](#this-verifyinvokedonce)
17-
* [$this->verifyInvokedMultipleTimes()](#this-verifyinvokedmultipletimes)
18-
* [$this->verifyNeverInvoked()](#this-verifyneverinvoked)
19-
* [ReflectionHelper](#reflectionhelper)
20-
* [$this->getPrivateProperty()](#this-getprivateproperty)
21-
* [$this->setPrivateProperty()](#this-setprivateproperty)
22-
* [$this->getPrivateMethodInvoker()](#this-getprivatemethodinvoker)
23-
* [License](#license)
10+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
11+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
12+
13+
- [Requirements](#requirements)
14+
- [Installation](#installation)
15+
- [Usage](#usage)
16+
- [`TestDouble`](#testdouble)
17+
- [`$this->getDouble()`](#this-getdouble)
18+
- [`$this->verifyInvoked()`](#this-verifyinvoked)
19+
- [`$this->verifyInvokedOnce()`](#this-verifyinvokedonce)
20+
- [`$this->verifyInvokedMultipleTimes()`](#this-verifyinvokedmultipletimes)
21+
- [`$this->verifyNeverInvoked()`](#this-verifyneverinvoked)
22+
- [`ReflectionHelper`](#reflectionhelper)
23+
- [`$this->getPrivateProperty()`](#this-getprivateproperty)
24+
- [`$this->setPrivateProperty()`](#this-setprivateproperty)
25+
- [`$this->getPrivateMethodInvoker()`](#this-getprivatemethodinvoker)
26+
- [License](#license)
27+
28+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2429

2530
## Requirements
2631

bin/update-toc.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Before using this, install `doctoc`.
4+
# $ npm install -g doctoc
5+
6+
doctoc --notitle --maxlevel 4 README.md

0 commit comments

Comments
 (0)