File tree Expand file tree Collapse file tree 4 files changed +27
-27
lines changed
tests/Integration/Template/Installer Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Original file line number Diff line number Diff line change 1+ # How to contribute
2+
3+ Simply clone the repo and install using ` composer `
4+
5+ ``` bash
6+ $ composer install
7+ ```
8+
9+ Make your changes and make sure you run * tests* and * codesniffer* .
10+
11+ ``` bash
12+ $ composer test
13+ $ composer check
14+ ```
Original file line number Diff line number Diff line change @@ -160,31 +160,7 @@ $unit->start();
160160```
161161
162162# How to Contribute
163- Simply clone the repo and install using ` composer `
164-
165- ``` bash
166- $ composer install
167- ```
168-
169- Make your changes and make sure you run * test* and * codesniffer* .
170-
171- ``` bash
172- $ composer test
173- > vendor/bin/phpunit tests/
174- PHPUnit 6.3.0 by Sebastian Bergmann and contributors.
175-
176- ................................................................. 65 / 89 ( 73%)
177- ........................ 89 / 89 (100%)
178-
179- Time: 1.65 seconds, Memory: 8.00MB
180-
181- OK (89 tests, 169 assertions)
182-
183- $ composer cs
184- > vendor/bin/phpcs --standard=PSR2 src/ && vendor/bin/phpcs --standard=PSR2 tests/
185-
186- $
187- ```
163+ See [ CONTIRBUTING.md] ( CONTRIBUTING.md ) .
188164
189165# Credits
190166This library is heavily influenced by [ @mjanser ] ( https://github.com/mjanser ) [ php-systemctl] ( https://github.com/mjanser/php-systemctl ) .
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ Vagrant.configure("2") do |config|
44 config . vm . provision "shell" , inline : <<-SHELL
55 add-apt-repository ppa:ondrej/php
66 apt-get update
7- apt-get install -y php7.1 php7.1-xml php7.1-mbstring php7.1-zip php7.1-curl php7.1-xdebug composer
7+ apt-get install -y composer
8+ apt-get install -y php7.1 php7.1-xml php7.1-mbstring php7.1-zip php7.1-curl php7.1-xdebug
9+ apt-get install -y php7.2 php7.2-xml php7.2-mbstring php7.2-zip php7.2-curl php7.2-xdebug
810
911 # Switch to /vagrant and install packages
1012 cd /vagrant && composer install
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ public function itShouldCreateTargetFile()
8181
8282 /** @var File $file */
8383 $ file = self ::$ fileSystem ->get ('/units/awesomeService.service ' );
84- $ this ->assertEquals ("[Service] \nType=simple \n" , $ file ->getContent ());
84+
85+ $ expected = <<<EOF
86+ [Service]
87+ Type=simple
88+
89+ EOF ;
90+
91+
92+ $ this ->assertEquals ($ expected , $ file ->getContent ());
8593 }
8694}
You can’t perform that action at this time.
0 commit comments