File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 $ content = file_get_contents ($ readmePath );
8484
8585 expect ($ content )
86- ->toContain ('# Marko Dev Server ' )
87- ->toContain ('## Overview ' )
86+ ->toContain ('# marko/dev-server ' )
8887 ->toContain ('## Installation ' )
89- ->toContain ('## Usage ' )
90- ->toContain ('## Configuration ' )
91- ->toContain ('## API Reference ' );
88+ ->toContain ('## Documentation ' );
9289});
9390
9491it ('documents installation via Composer ' , function (): void {
106103 ->toContain ('dev:status ' );
107104});
108105
109- it ('documents config/dev.php configuration ' , function (): void {
106+ it ('documents key commands in quick example ' , function (): void {
110107 $ content = file_get_contents (__DIR__ . '/../README.md ' );
111108
112109 expect ($ content )
113- ->toContain ('config/dev.php ' )
114- ->toContain ('port ' )
115- ->toContain ('detach ' )
116- ->toContain ('docker ' )
117- ->toContain ('frontend ' );
118- });
119-
120- it ('documents CLI flag overrides ' , function (): void {
121- $ content = file_get_contents (__DIR__ . '/../README.md ' );
122-
123- expect ($ content )
124- ->toContain ('--port ' )
125- ->toContain ('--detach ' );
110+ ->toContain ('dev:up ' )
111+ ->toContain ('dev:down ' )
112+ ->toContain ('dev:status ' );
126113});
Original file line number Diff line number Diff line change 123123 }
124124});
125125
126- it ('README documents optional packages ' , function () {
127- $ readmePath = dirname (__DIR__ ) . '/README.md ' ;
128- $ content = file_get_contents ($ readmePath );
129-
130- $ optionalPackages = [
131- 'marko/database ' ,
132- 'marko/cache ' ,
133- 'marko/session ' ,
134- 'marko/authentication ' ,
135- 'marko/log ' ,
136- 'marko/filesystem ' ,
137- 'marko/errors-advanced ' ,
138- ];
139-
140- foreach ($ optionalPackages as $ package ) {
141- expect ($ content )->toContain ($ package );
142- }
143- });
144-
145126it ('README shows installation examples ' , function () {
146127 $ readmePath = dirname (__DIR__ ) . '/README.md ' ;
147128 $ content = file_get_contents ($ readmePath );
Original file line number Diff line number Diff line change 6464 $ logger = $ this ->createMock (LoggerInterface::class);
6565 $ logger ->expects ($ this ->once ())
6666 ->method ('info ' )
67- ->with ('Email sent ' , $ this ->isType ( ' array ' ));
67+ ->with ('Email sent ' , $ this ->isArray ( ));
6868
6969 $ mailer = new LogMailer ($ logger );
7070
You can’t perform that action at this time.
0 commit comments