Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed Sep 29, 2020
1 parent 6e8d981 commit 35354bc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
49 changes: 23 additions & 26 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
colors="true"
bootstrap="./tests/bootstrap.php">
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/WebThumbnailer/</directory>
<directory suffix=".php">tests/WebThumbnailer/</directory>
</whitelist>
</filter>
<testsuites>
<testsuite name="AllTests">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="coverage" lowUpperBound="30" highLowerBound="80"/>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
<log type="coverage-clover" target="coverage/logs/clover.xml"/>
</logging>
<php>
<const name="WEB_SERVER_HOST" value="localhost" />
<const name="WEB_SERVER_PORT" value="8081" />
<const name="WEB_SERVER_DOCROOT" value="./tests/public" />
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="./tests/bootstrap.php">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">src/WebThumbnailer/</directory>
<directory suffix=".php">tests/WebThumbnailer/</directory>
</include>
<report>
<clover outputFile="coverage/logs/clover.xml"/>
<html outputDirectory="coverage" lowUpperBound="30" highLowerBound="80"/>
<text outputFile="php://stdout" showUncoveredFiles="true"/>
</report>
</coverage>
<testsuites>
<testsuite name="AllTests">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging/>
<php>
<const name="WEB_SERVER_HOST" value="localhost"/>
<const name="WEB_SERVER_PORT" value="8081"/>
<const name="WEB_SERVER_DOCROOT" value="./tests/public"/>
</php>
</phpunit>
5 changes: 2 additions & 3 deletions tests/WebThumbnailer/WebThumbnailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ public function testDirectImageWithoutExtension()
*/
public function testOpenGraphImage()
{
$image = 'default/le-monde.png';
$this->regenerate($image);
$expected = self::$regenerated . $image;
$image = 'default/le-monde.jpg';
$expected = self::$expected . $image;
$url = self::LOCAL_SERVER . 'default/le-monde.html';
$wt = new WebThumbnailer();
$thumb = $wt->thumbnail($url);
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35354bc

Please sign in to comment.