mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
42 lines
812 B
PHP
42 lines
812 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\MainBundle\Test;
|
|
|
|
/**
|
|
* a trait to prepare prophecy.
|
|
*
|
|
* **Usage : ** You must set up trait with `setUpTrait` before use
|
|
* and use tearDownTrait after usage.
|
|
*
|
|
* @codeCoverageIgnore
|
|
* @deprecated use @class{Prophecy\PhpUnit\ProphecyTrait} instead
|
|
*/
|
|
trait ProphecyTrait
|
|
{
|
|
/**
|
|
* @var \Prophecy\Prophet()
|
|
*/
|
|
private $prophet;
|
|
|
|
/**
|
|
* @return \Prophecy\Prophet
|
|
*/
|
|
public function getProphet()
|
|
{
|
|
if (null === $this->prophet) {
|
|
$this->prophet = new \Prophecy\Prophet();
|
|
}
|
|
|
|
return $this->prophet;
|
|
}
|
|
}
|