Skip to content

Commit b6ed2cd

Browse files
committed
Added strict mode, increase assertion count instead of assert true
1 parent a29d634 commit b6ed2cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="./vendor/autoload.php" colors="true">
2+
<phpunit bootstrap="./vendor/autoload.php" colors="true" strict="true">
33

44
<testsuites>
55
<testsuite name="OpenStack">

tests/unit/Common/Api/OperatorTraitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setUp()
2828

2929
$this->def = [
3030
'method' => 'GET',
31-
'path' => 'test',
31+
'path' => 'test',
3232
'params' => [],
3333
];
3434

@@ -49,7 +49,7 @@ public function test_it_sends_a_request_when_operations_are_executed()
4949

5050
$this->operator->execute($this->def, []);
5151

52-
self::assertTrue(true);
52+
$this->addToAssertionCount(1);
5353
}
5454

5555
public function test_it_sends_a_request_when_async_operations_are_executed()
@@ -58,7 +58,7 @@ public function test_it_sends_a_request_when_async_operations_are_executed()
5858

5959
$this->operator->executeAsync($this->def, []);
6060

61-
self::assertTrue(true);
61+
$this->addToAssertionCount(1);
6262
}
6363

6464
public function test_it_wraps_sequential_ops_in_promise_when_async_is_appended_to_method_name()

0 commit comments

Comments
 (0)