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
[TestClass] | |
public class OrderBehaviorTest | |
{ | |
private static String TALISKER = "Talisker"; | |
[TestMethod] | |
public void testFillingRemovesInventory() | |
{ | |
// Arrange | |
Order order = new Order(TALISKER, 50); |
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
// Adapted from Martin Fowler | |
[TestClass] | |
public class OrderStateTester { | |
private static String TALISKER = "Talisker"; | |
private static String HIGHLAND_PARK = "Highland Park"; | |
private Warehouse warehouse = new WarehouseImpl(); | |
[TestInitialize] | |
protected void setUp() { | |
warehouse.add(TALISKER, 50); |
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 | |
use AspectMock\Test as test; | |
class Foo | |
{ | |
static function simpleStatic() { | |
return 'bees?!'; | |
} | |
} |
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 | |
/** | |
* Handle dynamic, static calls to the object. | |
* | |
* @param string $method | |
* @param array $args | |
* @return mixed | |
*/ | |
public static function __callStatic($method, $args) |
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 | |
// app/routes.php | |
// By Dayle Rees | |
Route::group(array('before' => 'onlybrogrammers', function() | |
{ | |
// First Route | |
Route::get('/first', function () { |
NewerOlder