This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Providers; | |
use Silex\Application; | |
use Silex\ServiceProviderInterface; | |
use Symfony\Component\Yaml\Yaml; | |
class ConfigServiceProvider implements ServiceProviderInterface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TestTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function test_someAwfulTest() | |
{ | |
$expected = array(array('name' => 'buenos aires')); | |
$connectionMock = $this->getMockBuilder('Doctrine\DBAL\Connection') | |
->disableOriginalConstructor() | |
->getMock(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
require 'watir-webdriver' | |
browser = Watir::Browser.new | |
RSpec.configure do |config| | |
config.before(:each) { @browser = browser } | |
config.after(:suite) { browser.close unless browser.nil? } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
require 'watir-webdriver' | |
browser = Watir::Browser.new | |
RSpec.configure do |config| | |
config.before(:each) { @browser = browser } | |
config.after(:suite) { browser.close unless browser.nil? } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESULT=$(phpunit tests/Smoke); | |
if [[ $RESULT =~ FAILURES ]]; then | |
echo "THE TESTS FAILS" | |
echo $RESULT | |
exit 1; | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Services; | |
use Models\CountryMapper; | |
use Billing\Services\ServiceValidator; | |
use Symfony\Component\Validator\Constraints\NotNull; | |
class Country | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESULT=$(phpunit tests/Smoke); | |
if [[ $RESULT =~ FAILURES ]]; then | |
echo "TEST WAS FAILED" | |
echo $RESULT | |
exit 1; | |
fi |