-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create fixtures for test EventPuller service
- Loading branch information
1 parent
3c2ea0c
commit bc97af2
Showing
4 changed files
with
113 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* GpsLab component. | ||
* | ||
* @author Peter Gribanov <info@peter-gribanov.ru> | ||
* @copyright Copyright (c) 2011, Peter Gribanov | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
|
||
namespace GpsLab\Bundle\DomainEvent\Tests\Fixtures; | ||
|
||
class SimpleObject | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $foo; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected $camelCase = 'boo'; | ||
|
||
/** | ||
* @param string $foo | ||
*/ | ||
public function __construct($foo) | ||
{ | ||
$this->foo = $foo; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFoo() | ||
{ | ||
return $this->foo; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* GpsLab component. | ||
* | ||
* @author Peter Gribanov <info@peter-gribanov.ru> | ||
* @copyright Copyright (c) 2011, Peter Gribanov | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
|
||
namespace GpsLab\Bundle\DomainEvent\Tests\Fixtures; | ||
|
||
use Doctrine\Common\Persistence\Proxy; | ||
|
||
class SimpleObjectCommonProxy extends SimpleObject implements Proxy | ||
{ | ||
public $__isInitialized__ = false; | ||
|
||
public function __load() | ||
{ | ||
if (!$this->__isInitialized__) { | ||
$this->camelCase = 'proxy-boo'; | ||
$this->__isInitialized__ = true; | ||
} | ||
} | ||
|
||
public function __isInitialized() | ||
{ | ||
return $this->__isInitialized__; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* GpsLab component. | ||
* | ||
* @author Peter Gribanov <info@peter-gribanov.ru> | ||
* @copyright Copyright (c) 2011, Peter Gribanov | ||
* @license http://opensource.org/licenses/MIT | ||
*/ | ||
|
||
namespace GpsLab\Bundle\DomainEvent\Tests\Fixtures; | ||
|
||
use Doctrine\Persistence\Proxy; | ||
|
||
class SimpleObjectProxy extends SimpleObject implements Proxy | ||
{ | ||
public $__isInitialized__ = false; | ||
|
||
public function __load() | ||
{ | ||
if (!$this->__isInitialized__) { | ||
$this->camelCase = 'proxy-boo'; | ||
$this->__isInitialized__ = true; | ||
} | ||
} | ||
|
||
public function __isInitialized() | ||
{ | ||
return $this->__isInitialized__; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters