This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnkohana/vendor/phpunit/phpunit-mock-objects/Tests/_files/Mockable.php

29 lines
505 B
PHP
Raw Normal View History

2013-04-22 04:09:50 +00:00
<?php
class Mockable
{
public $constructorArgs;
public $cloned;
public function __construct($arg1 = NULL, $arg2 = NULL)
{
$this->constructorArgs = array($arg1, $arg2);
}
public function mockableMethod()
{
// something different from NULL
return TRUE;
}
public function anotherMockableMethod()
{
// something different from NULL
return TRUE;
}
public function __clone()
{
$this->cloned = TRUE;
}
}