Skip to content

Commit e348adb

Browse files
committed
#12 Add test for deprecation notice
1 parent 351d9e4 commit e348adb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/FixturesTest.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public function testFixtures($folder, $commands = array(), $files = array())
5858
// the latest code.
5959
$this->composer('config', 'repositories.dev', 'path', $this->projectRoot);
6060

61-
$this->composer('install');
61+
$output = $this->composer('install');
62+
63+
// Check for deprecation notices.
64+
$this->assertDeprecationNotice($output);
6265

6366
// Run additional composer commands.
6467
foreach ($commands as $command) {
@@ -123,4 +126,15 @@ protected function composer($command)
123126

124127
return $output;
125128
}
129+
130+
/**
131+
* Check lines for not having any deprecation notice.
132+
* @param string[] $lines
133+
*/
134+
protected function assertDeprecationNotice($lines)
135+
{
136+
foreach ($lines as $line) {
137+
$this->assertNotContains('Deprecation Notice:', $line);
138+
}
139+
}
126140
}

0 commit comments

Comments
 (0)