Skip to content

Commit a5fb1d3

Browse files
authored
1 parent 9db1167 commit a5fb1d3

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ matrix:
2424
include:
2525
- php: 5.6
2626
env: RUN_DEVSERVER_TESTS=true RUN_CS_FIXER=true
27-
- php: 7.0
27+
- php: 7.0.8
28+
- php: 7.1
2829

2930
env:
3031
global:

dlp/test/dlpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testListInfoTypes()
9696

9797
// list info types by category
9898
$output = $this->runCommand('list-info-types', [
99-
'category' => 'PII'
99+
'category' => 'GOVERNMENT'
100100
]);
101101

102102
$this->assertContains('US_DEA_NUMBER', $output);

testing/run_test_suite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ do
4646
pushd ${DIR}
4747
if [ -f "composer.json" ]; then
4848
# install composer dependencies
49-
composer install
49+
composer install -q
5050
fi
5151
echo "running phpunit in ${DIR}"
5252
if [ -f "vendor/bin/phpunit" ]; then

video/test/quickstartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public function testQuickstart()
2929
{
3030
// Invoke quickstart.php
3131
include __DIR__ . '/../quickstart.php';
32-
$this->expectOutputRegex('/Cat/');
32+
$this->expectOutputRegex('/cat/');
3333
}
3434
}

video/test/videoTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public function testAnalyzeFaces()
4343
public function testAnalyzeLabels()
4444
{
4545
$output = $this->runCommand('labels', ['uri' => self::$gcsUri]);
46-
$this->assertContains('Cat', $output);
46+
$this->assertContains('cat', $output);
4747
}
4848

4949
public function testAnalyzeLabelsInFile()
5050
{
5151
$output = $this->runCommand('labels-in-file', [
5252
'file' => __DIR__ . '/data/cat_shortened.mp4'
5353
]);
54-
$this->assertContains('Cat', $output);
54+
$this->assertContains('cat', $output);
5555
}
5656

5757
public function testAnalyzeSafeSearch()

vision/test/quickstartTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public function testQuickstart()
3636

3737
// Make sure it looks correct
3838
$this->assertTrue(is_array($labels));
39-
$this->assertEquals(5, count($labels));
40-
39+
$this->assertTrue(count($labels) > 0);
4140
$this->expectOutputRegex('/cat/');
4241
}
4342
}

vision/test/visionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ public function testDetectWebCommand()
271271
$output = $this->runCommand('web', $path);
272272
$this->assertContains('Web Entities found:', $output);
273273
$this->assertContains('Palace of Fine Arts Theatre', $output);
274-
$this->assertContains('Pier 39', $output);
275274
}
276275

277276
public function testDetectWebCommandGcs()
@@ -283,7 +282,6 @@ public function testDetectWebCommandGcs()
283282
$output = $this->runCommand('web', $path);
284283
$this->assertContains('Web Entities found:', $output);
285284
$this->assertContains('Palace of Fine Arts Theatre', $output);
286-
$this->assertContains('Pier 39', $output);
287285
}
288286

289287
private function runCommand($commandName, $path, $output=null)

0 commit comments

Comments
 (0)