Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added strict mode, increase assertion count instead of assert true
  • Loading branch information
haphan committed Feb 5, 2018
commit b6ed2cdaee0dbc06a4583ea5471e67ddc2786546
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<phpunit bootstrap="./vendor/autoload.php" colors="true" strict="true">

<testsuites>
<testsuite name="OpenStack">
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Common/Api/OperatorTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function setUp()

$this->def = [
'method' => 'GET',
'path' => 'test',
'path' => 'test',
'params' => [],
];

Expand All @@ -49,7 +49,7 @@ public function test_it_sends_a_request_when_operations_are_executed()

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

self::assertTrue(true);
$this->addToAssertionCount(1);
}

public function test_it_sends_a_request_when_async_operations_are_executed()
Expand All @@ -58,7 +58,7 @@ public function test_it_sends_a_request_when_async_operations_are_executed()

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

self::assertTrue(true);
$this->addToAssertionCount(1);
}

public function test_it_wraps_sequential_ops_in_promise_when_async_is_appended_to_method_name()
Expand Down