Skip to content

Commit ba11a34

Browse files
committed
Travis CI configuration fixes.
1 parent edd6a59 commit ba11a34

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ php:
44
- '5.6'
55
- '7.0'
66

7+
before_script:
8+
- composer self-update
9+
- composer install --prefer-source --no-interaction --dev
10+
711
script: phpunit

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
PHP JSON Pointer
22
================
3-
This library allows usage of RFC-6901-compliant JSON pointers with PHP
4-
variables.
3+
[![Build Status](https://travis-ci.org/remorhaz/php-json-pointer.svg?branch=master)](https://travis-ci.org/remorhaz/php-json-pointer)
4+
5+
This library allows usage of RFC-6901-compliant JSON pointers with PHP variables.
56

67
#License
78
PHP JSON Pointer is licensed under MIT license.
@@ -49,7 +50,7 @@ $result = $pointer
4950
->setText($link)
5051
->test(); // Sets $result to FALSE.
5152

52-
// Treating PHP objects as arrays (not compliant with RFC6901, but
53+
// Treating PHP arrays as objects (not compliant with RFC6901, but
5354
// it's the only way to access non-numeric index in PHP array).
5455
$subData = ['g' => 2, 'h' => 3];
5556
$link = '/a/c/g'; // Link to non-numeric index of array.

phpunit.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<phpunit bootstrap="vendor/autoload.php">
2+
<phpunit
3+
bootstrap="vendor/autoload.php"
4+
colors="true">
35
<testsuites>
46
<testsuite name="Library Test Suite">
57
<directory>tests/</directory>

0 commit comments

Comments
 (0)