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
<?php | |
/** | |
* Executes a mysql 5.5 safe truncate against all tables in a dataset. | |
* | |
* @package DbUnit | |
* @author Mike Lively <[email protected]> | |
* @copyright 2011 Mike Lively <[email protected]> | |
* @license http://www.opensource.org/licenses/bsd-license.php BSD License | |
* @version Release: @package_version@ |
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
<?php | |
$mock = Phake::mock('PhakeTest_MockedClass', Phake::ifUnstubbed()->thenCallParent()); | |
//All calls will call the parent by default, you can still stub on an individual | |
//method basis and you can verify any call | |
?> |
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
<?php | |
class MagicClass | |
{ | |
public function __call($method, $args) | |
{ | |
return '__call'; | |
} | |
} | |
?> |
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
<?php | |
interface CardCollection | |
{ | |
public function getNumberOfCards(); | |
} | |
?> |
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
pear channel-discover pear.digitalsandwich.com | |
pear install digitalsandwich/Phake |
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
<?php | |
class CardGame | |
{ | |
private $dealerStrategy; | |
private $deck; | |
private $players; | |
public function CardGame(DealerStrategy $dealerStrategy, CardCollection $deck, PlayerCollection $players) | |
{ |
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
<?php | |
class PhakeClass | |
{ | |
public function __call($method, $args) | |
{ | |
return '__call'; | |
} | |
} |