Initializes Bot instance and all its dependencies.
public static create ( ) : |
||
return |
protected function setUp() { $this->bot = PinterestBot::create(); $this->reflection = new ReflectionClass($this->bot); $this->setReflectedObject($this->bot); }
/** @test */ public function it_should_return_an_instance_of_bot() { $this->assertInstanceOf(Bot::class, PinterestBot::create()); }