Skip to content

Commit

Permalink
PHP: added 7.2 support with upgraded PHPUnit (#28)
Browse files Browse the repository at this point in the history
Removed testing support for 5.4 and 5.4
(PHPUnit support removed)
  • Loading branch information
bryanlatten authored and jimbojsb committed Jul 8, 2018
1 parent 75617d8 commit 9d31d40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"require-dev": {
"phpunit/phpunit": "4.*"
"phpunit/phpunit": "^5.0"
},
"autoload": {
"psr-0": {
Expand Down
9 changes: 7 additions & 2 deletions src/Pseudo/QueryLog.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php
namespace Pseudo;

class QueryLog implements \IteratorAggregate, \ArrayAccess
class QueryLog implements \IteratorAggregate, \ArrayAccess, \Countable
{
private $queries = [];

public function count()
{
return count($this->queries);
}

public function getIterator()
{
return new \ArrayIterator($this->queries);
Expand Down Expand Up @@ -39,4 +44,4 @@ public function getQueries()
{
return $this->queries;
}
}
}

0 comments on commit 9d31d40

Please sign in to comment.