assertSame("Hello world!", $qrcode->text()); } public function testNoText() { $image = __DIR__ . "/qrcodes/empty.png"; $qrcode = new QrReader($image); $this->assertSame(false, $qrcode->text()); } }