Skip to content

Commit a6009d8

Browse files
Add a Failing Test Case for Tests with No vcr Annotation
Shows that a typeerror is thrown.
1 parent 7ef7225 commit a6009d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/VCRTestListenerTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ public function testInterceptsWithAnnotationsWhenUsingDataProvider(int $dummyVal
4040
$this->assertEquals('This is a annotation test dummy.', $result, 'Call was not intercepted (using annotations with data provider).');
4141
}
4242

43+
/**
44+
* @group https://github.com/php-vcr/phpunit-testlistener-vcr/issues/29
45+
*/
46+
public function testNoVcrAnnotationRunsSuccessfulAndDoesNotProduceWarnings()
47+
{
48+
$this->assertTrue(true, 'just adding an assertion here');
49+
}
50+
4351
public function dummyDataProvider(): array
4452
{
4553
return [

0 commit comments

Comments
 (0)