Skip to content

Commit

Permalink
Enhancement: Assert that OutputWriter is created if not injected
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 18, 2015
1 parent 167d3db commit 8676e84
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ public function testConstructorSetsOutputWriter()
$this->assertSame($outputWriter, $configuration->getOutputWriter());
}

public function testOutputWriterIsLazilyCreated()
{
$configuration = new Configuration($this->getConnectionMock());

$this->assertInstanceOf('Doctrine\DBAL\Migrations\OutputWriter', $configuration->getOutputWriter());
}

/**
* @return \PHPUnit_Framework_MockObject_MockObject|Connection
*/
Expand Down

0 comments on commit 8676e84

Please sign in to comment.