Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea
vendor
composer.lock
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
git:
depth: 1
sudo: false
cache:
directories:
- $HOME/.composer/cache
language: php

php:
- 5.3
- 5.4

- '7.0'
- '7.1'
install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
before_script:
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
- composer install --prefer-dist -o --no-scripts
script:
- ./vendor/bin/phpunit
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# xpmock

[![Build Status](https://travis-ci.org/ptrofimov/xpmock.png?branch=master)](https://travis-ci.org/ptrofimov/xpmock)
[![Latest Stable Version](https://poser.pugx.org/ptrofimov/xpmock/v/stable.png)](https://packagist.org/packages/ptrofimov/xpmock)
[![Total Downloads](https://poser.pugx.org/ptrofimov/xpmock/downloads.png)](https://packagist.org/packages/ptrofimov/xpmock)
[![Build Status](https://travis-ci.org/michalv8/xpmock.png?branch=master)](https://travis-ci.org/ptrofimov/xpmock)
[![Latest Stable Version](https://poser.pugx.org/michalv8/xpmock/v/stable.png)](https://packagist.org/packages/ptrofimov/xpmock)
[![Total Downloads](https://poser.pugx.org/michalv8/xpmock/downloads.png)](https://packagist.org/packages/ptrofimov/xpmock)

Introduction [[in English]](http://ptrofimov.github.io/) [[на русском]](http://habrahabr.ru/post/183010/)

Expand Down Expand Up @@ -59,8 +59,6 @@ $this->mock('MyClass') // init mock (all methods are real by default)
->getNumber()
// $mock->expects($this->any())->method('getNumber')->will($this->returnValue(1))
->getNumber(1)
// $mock::staticExpects($this->any())->method('getNumber')->will($this->returnValue(1))
->getNumber(1)
// $mock->expects($this->any())->method('getNumber')->will($this->returnValue(1))
->getNumber($this->returnValue(1))
// $mock->expects($this->once())->method('getNumber')->will($this->returnValue(null))
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "ptrofimov/xpmock",
"name": "michalv8/xpmock",
"description": "PHPUnit: simple syntax to create mock-objects",
"license": "MIT",
"version": "2.0.0",
"require": {
"php": ">=5.3.0"
"php": ">=7.3"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
"phpunit/phpunit": "^9.0"
},
"autoload": {
"psr-0": {
Expand Down
Loading