1
0
mirror of https://github.com/danog/PHPStruct.git synced 2024-11-26 19:54:38 +01:00

Added travis-ci tests

This commit is contained in:
danogentili 2016-07-05 20:57:15 +02:00
parent 8760013afc
commit b8d7f7a77d
4 changed files with 12 additions and 0 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: php
php:
- '5.6'
- '7.0'
- hhvm
- nightly
script:
- phpunit --bootstrap lib/danog/PHP/StructException.php --bootstrap lib/danog/PHP/Struct.php tests/danog/PHP/StructTest.php --verbose

View File

@ -1,5 +1,7 @@
# PHPStruct class
[![Build Status](https://travis-ci.org/danog/PHPStruct.svg?branch=master)](https://travis-ci.org/danog/PHPStruct)
Licensed under MIT.
PHP implementation of Python's struct module.

View File

@ -102,6 +102,7 @@ class Struct {
* @return Encoded data
*/
public function pack($format, ...$data) {
//var_dump("Pack called with ", $format, $data);
$result = null; // Data to return
$packcommand = $this->parseformat($format, $this->array_total_strlen($data), $this->array_each_strlen($data)); // Get pack parameters

Binary file not shown.