Skip to content

Commit 66b6bfa

Browse files
committed
Update lineendings; Update Vagrantfile with php7.2
1 parent 0980b37 commit 66b6bfa

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
```

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff 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
190166
This library is heavily influenced by [@mjanser](https://github.com/mjanser) [php-systemctl](https://github.com/mjanser/php-systemctl).

Vagrantfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/Integration/Template/Installer/UnitInstallerTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)