DataSift\Storyplayer\PlayerLib\Action_LogItemTest::testCanInstantiate PHP Method

testCanInstantiate() public method

public testCanInstantiate ( )
    public function testCanInstantiate()
    {
        // ----------------------------------------------------------------
        // perform the change
        $i = new Injectables();
        $i->output = Mockery::mock("DataSift\\Storyplayer\\Output");
        $i->dataFormatter = new DataFormatter();
        $obj = new Action_LogItem($i, 1);
        // ----------------------------------------------------------------
        // test the results
        $this->assertTrue($obj instanceof Action_LogItem);
        $this->assertEquals(1, $obj->getNestLevel());
        Mockery::close();
    }