Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
added travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Nov 25, 2015
1 parent 1758c78 commit c419ed9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

sudo: false

cache:
directories:
- $HOME/.composer/cache

before_script:
- composer install --prefer-dist

script:
- phpunit
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
DOM
===

[![Build Status](https://travis-ci.org/phpbench/dom.svg?branch=master)](https://travis-ci.org/phpbench/dom)

This library provides a wrapper for the PHP DOM library which makes your life
easier.

It wraps the `\DOMDocument`, `\DOMElement` and `\DOMXpath` classes.`
It wraps the `\DOMDocument`, `\DOMElement` and `\DOMXpath` classes and
throws *exceptions*.

Example:

Expand All @@ -21,8 +24,8 @@ echo $dom->saveXml();
// <baz>world</baz>
// </example>

$element->appendChild('number', 5);
$element->appendChild('number', 10);
$element->appendElement('number', 5);
$element->appendElement('number', 10);

echo $element->evaluate('sum(./number)'); // 15

Expand Down

0 comments on commit c419ed9

Please sign in to comment.