Created
February 26, 2016 00:48
-
-
Save thmsbkkr/82f0109e0fd5dfd82a38 to your computer and use it in GitHub Desktop.
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 | |
namespace App; | |
class BladeDirective | |
{ | |
protected $cache; | |
public function __construct(RussianCache $cache) | |
{ | |
$this->cache = $cache; | |
} | |
public function setUp($cacheKey) | |
{ | |
} | |
} | |
/* Russian Cache */ | |
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 App\RussianCache; | |
use App\BladeDirective; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class ExampleTwoTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testItDoesSomething() | |
{ | |
$cache = $this->prophesize('App\RussianCache'); | |
$directive = new BladeDirective($cache->reveal()); | |
$cache->has('cache-key')->shouldBeCalled(); | |
$directive->setUp('cache-key'); | |
} | |
} |
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 | |
namespace App; | |
class RussianCache | |
{ | |
public function has() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment