27 lines
385 B
PHP
27 lines
385 B
PHP
<?php
|
|
class Mockable
|
|
{
|
|
public $constructorCalled = false;
|
|
public $cloned = false;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->constructorCalled = false;
|
|
}
|
|
|
|
public function foo()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function bar()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function __clone()
|
|
{
|
|
$this->cloned = true;
|
|
}
|
|
}
|