Skip to content

Commit 0905bb7

Browse files
committed
Stricter tests
1 parent 61d8e3c commit 0905bb7

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
backupStaticAttributes="false"
4-
bootstrap="tests/bootstrap.php"
4+
bootstrap="vendor/autoload.php"
55
colors="true"
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"

tests/Omnipay/Common/CreditCardTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public function testGetParamters()
5050
$this->assertSame(2016, $parameters['expiryYear']);
5151
}
5252

53+
/**
54+
* @doesNotPerformAssertions
55+
*/
5356
public function testValidateFixture()
5457
{
5558
$this->card->validate();

tests/Omnipay/Common/HelperTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,18 @@ public function testValidateLuhnNull()
4343
$this->assertTrue($result);
4444
}
4545

46+
/**
47+
* @doesNotPerformAssertions
48+
*/
4649
public function testInitializeIgnoresNull()
4750
{
4851
$target = m::mock();
4952
Helper::initialize($target, null);
5053
}
5154

55+
/**
56+
* @doesNotPerformAssertions
57+
*/
5258
public function testInitializeCallsSetters()
5359
{
5460
$target = m::mock('\Omnipay\Common\CreditCard');
@@ -58,6 +64,9 @@ public function testInitializeCallsSetters()
5864
Helper::initialize($target, array('name' => 'adrian', 'number' => '1234'));
5965
}
6066

67+
/**
68+
* @doesNotPerformAssertions
69+
*/
6170
public function testInitializeIgnoresInvalidParameters()
6271
{
6372
$target = m::mock('\Omnipay\Common\CreditCard');

tests/Omnipay/OmnipayTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class OmnipayTest extends TestCase
1010
public function tearDown()
1111
{
1212
Omnipay::setFactory(null);
13+
14+
parent::tearDown();
1315
}
1416

1517
public function testGetFactory()

tests/bootstrap.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)