/** * Constructor. * * @param \Cartalyst\Sentinel\Native\SentinelBootstrapper $bootstrapper * @return void */ public function __construct(SentinelBootstrapper $bootstrapper = null) { if ($bootstrapper === null) { $bootstrapper = new SentinelBootstrapper(); } $this->sentinel = $bootstrapper->createSentinel(); }
public function testInstantiate() { $bootstrapper = new SentinelBootstrapper(); $sentinel = $bootstrapper->createSentinel(); $this->assertInstanceOf('Cartalyst\\Sentinel\\Sentinel', $sentinel); }