PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-sdk-core
/
tests
/
formatters
<?php class FormatterFactoryTest extends PHPUnit_Framework_TestCase { /** * @test */ public function testValidBinding() { $this->assertEquals('PPNVPFormatter', get_class(FormatterFactory::factory('NV'))); $this->assertEquals('PPSOAPFormatter', get_class(FormatterFactory::factory('SOAP'))); } /** * @test */ public function testInvalidBinding() { $this->setExpectedException('InvalidArgumentException'); FormatterFactory::factory('Unknown'); } }
[+]
..
[-] FormatterFactoryTest.php
[edit]
[-] PPNVPFormatterTest.php
[edit]
[-] PPSOAPFormatterTest.php
[edit]