Skip to content

Commit 706a433

Browse files
committed
Set up Travis CI to run a quick test
1 parent 1bd4fa1 commit 706a433

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
- 7.2
6+
7+
cache:
8+
directories:
9+
- $HOME/.composer/cache
10+
11+
install: composer install
12+
13+
script: vendor/bin/phpcs --standard=src/LEVIY/ruleset.xml tests/

tests/Foo.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace Bar;
5+
6+
use DateTime;
7+
8+
final class Foo
9+
{
10+
private const NOW = 'now';
11+
12+
public function getDate(): DateTime
13+
{
14+
return new DateTime(self::NOW);
15+
}
16+
}

0 commit comments

Comments
 (0)