Skip to content

Commit

Permalink
Test binary
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Mar 20, 2017
1 parent 5307413 commit 2415a61
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/ApplicationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Stolt\LeanPackage\Tests;

use PHPUnit\Framework\TestCase as PHPUnit;

class ApplicationTest extends PHPUnit
{
/**
* @test
* @group integration
*/
public function executableIsAvailable()
{
$binaryCommand = 'php bin/lean-package-validator';

exec($binaryCommand, $output, $returnValue);

$this->assertStringStartsWith(
'Lean package validator',
$output[1],
'Expected application name not present.'
);
$this->assertEquals(0, $returnValue);
}
}

0 comments on commit 2415a61

Please sign in to comment.