| 1 | <?php |
||
| 10 | class PackageTest extends PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @expectedException \PackageInfo\Exception\PackageNotInstalledException |
||
| 15 | * @expectedExceptionMessage Package "vendor/something" is not installed through composer, or you installed it with the flag --no-scripts |
||
| 16 | */ |
||
| 17 | public function testConstruct() |
||
| 18 | { |
||
| 19 | $package = new Package('vendor/something'); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testIsInstalled() |
||
| 23 | { |
||
| 24 | $bool = Package::isInstalled('vendor/something'); |
||
| 25 | |||
| 26 | $this->assertFalse($bool); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |