File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
src/ScayTrase/SmsDeliveryBundle/Features/Context Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1717 "symfony/config" : " ~2.3|~3.0"
1818 },
1919 "require-dev" : {
20+ "scaytrase/symfony-test-utils" : " ~1.1" ,
2021 "phpunit/phpunit" : " ~4.6@stable|~5.0@stable" ,
2122 "symfony/framework-bundle" : " ~2.3|~3.0"
2223 },
24+ "suggest" : {
25+ "scaytrase/symfony-test-utils" : " For behat profiling"
26+ },
2327 "autoload" : {
2428 "psr-0" : {
2529 "" : " src/"
Original file line number Diff line number Diff line change 2929 <directory >src/</directory >
3030 </testsuite >
3131 </testsuites >
32- <logging >
33- <log type =" coverage-html" target =" build/coverage" />
34- <log type =" coverage-clover" target =" build/logs/clover.xml" />
35- <log type =" junit" target =" build/logs/junit.xml" logIncompleteSkipped =" false" />
36- </logging >
3732</phpunit >
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ public function iShouldReceiveSMSFor($phoneNumber)
2727
2828 /** @var MessageDeliveryDataCollector $collector */
2929 $ collector = $ profiler ->getCollector ('sms_delivery.data_collector ' );
30- PHPUnit_Framework_Assert::assertEquals (1 , $ collector ->getMessageCount ());
31- $ messages = $ collector ->getRecords ();
30+ PHPUnit_Framework_Assert::assertCount (1 , $ collector ->getData ());
31+ $ packages = $ collector ->getData ();
3232 /** @var ShortMessageInterface $message */
33- $ message = $ messages [0 ][ ' message ' ] ;
34- PHPUnit_Framework_Assert::assertEquals ('disabled ' , $ messages [0 ][ ' status ' ] );
33+ $ message = $ packages [0 ]-> getMessage () ;
34+ PHPUnit_Framework_Assert::assertEquals ('disabled ' , $ packages [0 ]-> getStatus () );
3535 PHPUnit_Framework_Assert::assertNotEmpty ($ message ->getBody ());
3636 PHPUnit_Framework_Assert::assertEquals ($ phoneNumber , $ message ->getRecipient ());
3737 preg_match ('/\d{6}/ ' , $ message ->getBody (), $ matches );
@@ -62,5 +62,4 @@ protected function fixStepArgument($argument)
6262 {
6363 return str_replace ('\\" ' , '" ' , $ argument );
6464 }
65-
6665}
You can’t perform that action at this time.
0 commit comments