* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Tests\Guess; use PHPUnit\Framework\TestCase; use Symfony\Component\Form\Guess\Guess; class TestGuess extends Guess { } class GuessTest extends TestCase { public function testGetBestGuessReturnsGuessWithHighestConfidence() { $guess1 = new TestGuess(Guess::MEDIUM_CONFIDENCE); $guess2 = new TestGuess(Guess::LOW_CONFIDENCE); $guess3 = new TestGuess(Guess::HIGH_CONFIDENCE); $this->assertSame($guess3, Guess::getBestGuess(array($guess1, $guess2, $guess3))); } /** * @expectedException \InvalidArgumentException */ public function testGuessExpectsValidConfidence() { new TestGuess(5); } } __halt_compiler();----SIGNATURE:----L+SZeiSGIuDeOrcKqo8itckFl/lge4F9F2NqSBb62JmA43wnkLSXCtnhzviVXGK/YX7vjikIq5ZRwwrQw4hhxhhd0q52C2vNE8juduPpljtrmI+SCydK3PTAviv+NK+9GaHpkgEmYkkCqKXhFarr/MmFqes8J1d4JJ6MKT9exHvF58fBYbbmxFqlSchILYy5HDG/N6tmmkKeMJyXEfcIhHfKXVPJlYqr2mKBpM/gBlLm0zAkRuaOVV9th05FA5KYyU/xjzf5zPOBh6GuyCpYD+KxuryDWM+kUMWy/x1exn35nfjx2DhHhq3SixbYw4cKycvXlyMMc14og2ljAdYZ1ymAj6Gn9rOuxo1RbCpLJHUGt3QccDa1PhU90E7RvakhhzRsmCr7RhcvP27gnomVVVAbGYffYagugs4n09nOaTkzKggMe96ruEp6cOleKVJdIYL/hPsT8rQTBCKuARWLHvS14Zh6hAmbcVN0vo8k6k+gefA3tIAZV90Vj7XrebEGShaQKcul5/d22mPi3A27HMQdpNxrLhUUg/HKvWN16e5g734jLDj14fv3s2A7768HN9l9AnhNGe+sBUsv2za1mL/GP8mgqK36CNDdQkZsO1E7QXDJTa6s8ROq0caHw9d02/nJAknH44oqMFwVzSAPxaabnZ5mPPwv3fYtLBQHXVc=----ATTACHMENT:----NTA3ODg5NzM2NDI0OTkyIDg3Mzc3NzU1NzU3MTUyNDkgODAwOTc3MjA0Nzg5NDcwNw==