Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Commit

Permalink
First test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioBlazek committed Jul 8, 2017
1 parent 828a8e8 commit 03de9d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Tests/Exception/FileNotFoundExceptionTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Netgen\HtmlPdfApi\Tests\Exception;

use Netgen\HtmlPdfApi\Exception\FileNotFoundException;
use PHPUnit\Framework\TestCase;

class FileNotFoundExceptionTest extends TestCase
{
/**
* @expectedException \Netgen\HtmlPdfApi\Exception\FileNotFoundException
* @expectedExceptionMessage File not found
*/
public function testException()
{
throw new FileNotFoundException("File not found");
}
}
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"guzzle/guzzle": "~3.9"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^5.7",
"friendsofphp/php-cs-fixer": "~2.0"
},
"minimum-stability": "dev",
"target-dir": "Netgen/HtmlPdfApi",
Expand All @@ -28,6 +29,7 @@
}
},
"scripts": {
"test": "@php vendor/bin/phpunit --colors=always"
"test": "@php vendor/bin/phpunit --colors=always",
"fix": "@php vendor/bin/php-cs-fixer fix"
}
}

0 comments on commit 03de9d6

Please sign in to comment.