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:
parent
8760013afc
commit
b8d7f7a77d
9
.travis.yml
Normal file
9
.travis.yml
Normal 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
|
@ -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.
|
||||
|
@ -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.
Loading…
Reference in New Issue
Block a user