Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHPUnit testklassen automatisch erstellen lassen

Empfohlene Antworten

habe dieses thema auch bei php.de gepostet aber keine antwort erhalten.

ich will aus einer klasse automatisiert eine test-klasse erstellen lassen.

mit dem folgenden befehl soll das möglich sein:

shell->phpunit --skeleton-test NameDerKlasse

ich bekam dann diese meldung:

Neither "klasse.php" nor "pdf/klasse.php" could be opened.

ich habe nun anschließend eine klasse (nach langer tüftelei) für testzwecke entwickelt ->


class Sample {

    public function doSomething(){


    }

}

:D

wenn ich nun phpunit --skeleton-test Sample in der shell eingebe,

erstellt er mir wie erwartet die SampleTest.php-Datei.

an was liegt das, dass er es bei der anderen klasse nicht generiert hat?

beide klassen haben dieselben rechte!

Gruß

habe es hinbekommen.

die klasse muss die endung .php haben und der namen der datei muss = der der klasse sein.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.