Skip to content

Commit dadf2a8

Browse files
gmponosfabpot
authored andcommitted
[Tests] Change to willThrowException
1 parent 0106fee commit dadf2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Data/Bundle/Reader/BundleEntryReaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testFallbackIfLocaleDoesNotExist()
148148
$this->readerImpl->expects($this->at(0))
149149
->method('read')
150150
->with(self::RES_DIR, 'en_GB')
151-
->will($this->throwException(new ResourceBundleNotFoundException()));
151+
->willThrowException(new ResourceBundleNotFoundException());
152152

153153
$this->readerImpl->expects($this->at(1))
154154
->method('read')
@@ -166,7 +166,7 @@ public function testDontFallbackIfLocaleDoesNotExistAndFallbackDisabled()
166166
$this->readerImpl->expects($this->once())
167167
->method('read')
168168
->with(self::RES_DIR, 'en_GB')
169-
->will($this->throwException(new ResourceBundleNotFoundException()));
169+
->willThrowException(new ResourceBundleNotFoundException());
170170

171171
$this->reader->readEntry(self::RES_DIR, 'en_GB', array('Entries', 'Bam'), false);
172172
}

0 commit comments

Comments
 (0)