19 lines
		
	
	
		
			337 B
		
	
	
	
		
			PHP
		
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			337 B
		
	
	
	
		
			PHP
		
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Khanamiryan\QrCodeTests;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use PHPUnit\Framework\TestCase;
							 | 
						||
| 
								 | 
							
								use Zxing\QrReader;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class QrReaderTest extends TestCase
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public function testText1()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        $image = __DIR__ . "/qrcodes/hello_world.png";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        $qrcode = new QrReader($image);
							 | 
						||
| 
								 | 
							
								        $this->assertSame("Hello world!", $qrcode->text());
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |