~ubuntu-branches/ubuntu/trusty/php-memcache/trusty

« back to all changes in this revision

Viewing changes to memcache-3.0.8/tests/014.phpt

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2013-04-19 13:23:26 UTC
  • mfrom: (1.1.8) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20130419132326-4o0g4jrgcrg832nd
Tags: 3.0.8-1
ImportedĀ UpstreamĀ versionĀ 3.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
memcache->increment() & memcache->decrement()
 
3
--SKIPIF--
 
4
<?php include 'connect.inc'; ?>
 
5
--FILE--
 
6
<?php
 
7
 
 
8
include 'connect.inc';
 
9
 
 
10
$memcache->set('new_test', 5);
 
11
 
 
12
$result1 = $memcache->increment('new_test');
 
13
$result2 = $memcache->decrement('new_test');
 
14
$result3 = $memcache->get('new_test');
 
15
 
 
16
var_dump($result1);
 
17
var_dump($result2);
 
18
var_dump($result3);
 
19
 
 
20
?>
 
21
--EXPECT--
 
22
int(6)
 
23
int(5)
 
24
int(5)