Skip to content

Commit

Permalink
#12 Add test for deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
derhasi committed Feb 3, 2017
1 parent 351d9e4 commit e348adb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/FixturesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public function testFixtures($folder, $commands = array(), $files = array())
// the latest code.
$this->composer('config', 'repositories.dev', 'path', $this->projectRoot);

$this->composer('install');
$output = $this->composer('install');

// Check for deprecation notices.
$this->assertDeprecationNotice($output);

// Run additional composer commands.
foreach ($commands as $command) {
Expand Down Expand Up @@ -123,4 +126,15 @@ protected function composer($command)

return $output;
}

/**
* Check lines for not having any deprecation notice.
* @param string[] $lines
*/
protected function assertDeprecationNotice($lines)
{
foreach ($lines as $line) {
$this->assertNotContains('Deprecation Notice:', $line);
}
}
}

0 comments on commit e348adb

Please sign in to comment.